Started by
Hijitori
on
Topic category: Help with Minecraft modding (Java Edition)
I want my item to play a sound when player picks it up.
I created a Procedure, set Trigger Event to "Entity picks up item" and saved the Procedure in my specific item's "When in inventory tick".
Then when I have the item in my inventory, any item which I pick makes the sound, so I need to specify somehow the item which I want to make the sound. How?
Another idea is to make the sound play when player has it in inventory. To not make it sound constantly try with the repeat blocks. Hope it helps!
Use:
I think you mean repeating command block, but I am not sure how can I use that in this way.
I meant this:
I'm not 100% sure if it will work but it should
For me it works, idk abt you
Unfortunately it still doesn't work.
I mean with trigger "entity picks up item" - if I have the apple - all items make the sound.
Without trigger "entity picks up item" - if I have the apple - sound spams every tick once again.
I have tried many ways (I have spent almost 1 hour) and I don't find a solution. The only way I found is using repeat blocks but if it doesn't work for you then it's not a solution. (While I was writing this came to mind: how about do the same as I putted in the photo but on extra trigger do player tick update. You should try it, maybe it works.)
However my procedure has "Has provided entity in inventory" because I couldn't find the "Event/target entity"
I don't know if that's the problem
Still doesn't work with event trigger "On player tick update" and with being in item's "When item in inventory tick".
I hope there is some way to specify only one item event trigger and not all.