Started by
Ru4eyOk
on
Topic category: Help with Minecraft modding (Java Edition)
I decided to make my own hand hit sound, that only plays when the player punches.How to do it in a procedure?
Topic category: Help with Minecraft modding (Java Edition)
I decided to make my own hand hit sound, that only plays when the player punches.How to do it in a procedure?
Try using a produce whenever an entity is hit. Then see if the source entity has air in their main hand. Basicly soruce entity is what hurt the entity, and we are detecting if the source entity has nothing in their hand to make the noise. If you want it player only, add an and statement and check if the source entity type is a player. Hopefuly this helps!
-- KrebPleb
Thanks for the advice, but it still work incorrently