Chase music

Started by DerpyDerpingson223 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Chase music

Hey. So I was wondering since I've been trying to do it for awhile but how would I go about adding music for an entity when it spots the player and then having it stop when they've lost them?

Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
em i would say do it likeā€¦
Sun, 01/08/2023 - 08:08

em i would say do it like this

check for entity iterator in 10 blocks 
if entity iterator subtype of living entity <add the mobs you want>
play sound