Why won't it play sounds when I hover my cursor over chickens

Started by PythonHunter on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why won't it play sounds when I hover my cursor over chickens
Thu, 10/15/2020 - 02:44 (edited)

If I remove the second part of the AND statement the code works, but when I check if the entity has max health of 4, which chickens do, it doesn't work anymore.
So I must be doing something wrong, but I don't know what. Can anyone help me please!?

https://imgur.com/a/Q4eS3IO

Also is there a way to make this code more accurate?

Edited by PythonHunter on Thu, 10/15/2020 - 02:44