Started by
BeePlay
on
Topic category: Help with Minecraft modding (Java Edition)
I am doing new mod now and I need to do an item that does a sound if it equipped in main hand or off-hand. How do I do that?
Topic category: Help with Minecraft modding (Java Edition)
I am doing new mod now and I need to do an item that does a sound if it equipped in main hand or off-hand. How do I do that?
Try using the "Play sound" block in the "While item is in inventory ticks" procedure, where you monitor the presence of the item in your main hand and offhand using an NBT variable.
When you're holding the item and the variable is false, play the sound and set the variable to true. When you're no longer holding the item, set the variable to false.
Idk how do I use NBT I am not a some sort of "scripter".
NBT variables don't require extensive knowledge: their operation is fundamental to programming.
Tutorial from NorthWestTrees
MCreator explication
JAVA tutorial (easy)