Heart Increasing Food

Started by BaguetteDoesnt… on Sat, 11/20/2021 - 18:53

Topic category: Help with modding (Java Edition)

Last seen on 20:55, 1. Dec 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Heart Increasing Food
Sat, 11/20/2021 - 18:53

laterly ive been trying to do a fruit that when eated, gives you health boost, and each time you eat it, it will increase the health boost by 1. The thing is that i have no idea on how to do it, i used IF procedures to do it so it ended as when food eaten: if player has health boost 1 Do: add health boost 2, but this didnt worked as it just added hearts all the way to the cap i added (health boost level 9) so uhhh, pelase help me with this

Last seen on 20:55, 1. Dec 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
nevermind i just had to add …
Sat, 11/20/2021 - 21:14

nevermind i just had to add "else if" to the if procedures