Play sound if Player kills mob

Started by Eeveeletsplay on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Play sound if Player kills mob

Hello,

I have 5 obb sounds. Now I want, that everytime a player kills a mob a sound plays. Normally it should play the 1st Sound. But if the player killed a mob less than 5 seconds ago, the second sound should play then if he kill a mob in the next 5 seconds, the third sound should play and so on... I would really appreciate help.

(Sorry for my bad english)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The first sound work ? When…
Sat, 04/30/2022 - 10:35

The first sound work ?

When a player kill a mob give him a potion effect of 5 seconds. If he kill a mob and had this potion effect play the second sound.

(I don't know I'm understandable)

 

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No the first sound doesnt…
Fri, 05/06/2022 - 13:26

No the first sound doesnt work. I think I can make it with the potion effect, but I cant get the first sound to work. I think a picture of it would be the most helpful option. But thanks for the answer