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

Started by PythonHunter on

Topic category: Help with modding (Java Edition)

Last seen on 23:45, 8. Nov 2020
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
Consider printing the values…
Wed, 10/28/2020 - 09:03

Consider printing the values in console so you see what values you are working and making conditions with.