Started by
Lizardinthedeep
on
Topic category: Help with Minecraft modding (Java Edition)
I cant figure out how to make an item play a sound using procedure blocks. everytime I do it the sound plays for every item you right click with. I need help figuring out how to right click with one item and make it use a sound and only work for that item using procedure blocks.
Use the 'When player right clicks with item' global trigger, then use an 'if' block to check if the provided itemstack is your custom item. Inside the if block, put the play-sound block. Alternatively, just make sure the procedure has no global trigger, and is only called when you right click with the custom item.
u have image or an example for your idea ? cuz i dont understand the step "use an if......."
how do i find playsound?