how do i make an item if you hit a mob then it will give a custom sound

Started by JiroProgt on

Topic category: Help with MCreator software

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i make an item if you hit a mob then it will give a custom sound

how to give an item custom sound effect when it hits mobs?

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hopefully this can help a…
Wed, 09/29/2021 - 09:00

Hopefully this can help a bit;

you will have to make a procedure that checks if an entity is attacked
then check if the source entity has the item you want to have the sound played
then all you have to do is put the sound block into the procedure

Event Trigger = Entity Attacked

If (item in main hand of) (Source Entity) = (CUSTOM.ITEM)
(Play at xyz level: 1 pitch: 1 category: --- sound: (Insert Sound You Want Here))

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks  
Wed, 09/29/2021 - 11:42

thanks