Started by
crimson_fluff
on
Topic category: Help with Minecraft modding (Java Edition)
So Ive made a multitool in 1.14. When I right click a tree I want it to strip it like the axe does in Minecraft 1.14
Now I understand I could code it like:
If RightClickOnBlock Then
If BlockIs OakWood then ReplaceBlock with OakStripped
If BlockIs SpruceWood then ReplaceBlock with SpruceStripped
But I want to code for modded blocks. SO is there a way I can send a Right Click command and let Minecraft/Java figure out what to do? How would I strip BiomesOPlenty logs? Or do I really have to code for every Wood block type?
Modded blocks have right click trigger on themselves too so no need to use global trigger for this.
So If I use the RightClickOnBlock event for my Multitool, How do I tell Minecraft to auto strip Logs?
At the moment I code it the long way: If ClickedBlock is Oak then Replace with OakStrippedLog
Can I make this automatic, so that the RightClick passes to the Mod owner of the block clicked? This way it would support rightclicking modded blocks like BiomesOPlenty,
Be gentle, Im new to modding Minecraft