how to check if the entity is making a sound

Started by MadaMaker on

Topic category: Advanced modding

Last seen on 12:30, 6. Sep 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to check if the entity is making a sound

I wanted to make a warden like mob by making it detect sounds, but I don't know how? Can someone help me???

Last seen on 22:27, 12. Feb 2024
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thats a neat part, you can't…
Fri, 05/05/2023 - 06:12

Thats a neat part, you can't (unles you do it proceduraly).

Maybe try using those procedure triggers and make it feel like entity checking sounds.

For example for walking you can try checking if entity is on ground and [fast enough]/[crouching] to make step sounds and then sending informations to entity by modyfing entity's custom nbt (and some global entity variables if you want to have for example target). And for your warden like entity make update tick procedure that sets his target based on his custom nbt (and global entity varable (target entity)).

And you could improve 'example' above by using array(s) to save previous sounds and remove them after while.

Last seen on 12:30, 6. Sep 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I wonder how to do it on…
Sat, 05/06/2023 - 23:03

I wonder how to do it on ambient sounds

Last seen on 12:30, 6. Sep 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
my version is on 2022.3
Sat, 05/06/2023 - 23:03

my version is on 2022.3