Started by
CatWillSCRATCH
on
Topic category: Help with Minecraft modding (Java Edition)
I am making a collectable coin block with a custom model. I made it to where if an entity (most likely player) collides with the block, the block is set to air and the entity is given a coin item. I imported a .ogg file of a coin sound, but I'm not sure how to play it using just the procedure. Can anybody point me in the right direction?
In your block, go to triggers, When entity collides in the block, and add the following line:
(You will find it in World Management)
Play at x (x) y (y) z (z) level (#) pitch (#) category (change if needed) sound (look for your imported custom sound here)
Thank you! This works perfectly!