Damage detecting incorrectly

Started by Elvis_The_Snail on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Damage detecting incorrectly

So i'm making it so that if the player takes 4 or more damage they get an effect applied, but it applies the effect even if you take 1 damage.

I've even used commands to apply damage to myself, but it's applying anyways. I can't tell what's wrong with my procedure.

https://imgur.com/a/3kurfXk

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Right now you have it so…
Wed, 10/29/2025 - 05:38

Right now you have it so that if the amount is less than 4 you get bleeding lvl 1, change it around and make it check if its greater than that number so start with 
if amount > 17 bleed 3, 
elif amount > 12 bleed 2, 
elif amount > 8 bleed 1 
elif amount > 4 bleed 0
(also the potion effects start at 0 for level 1, so level 1 is level 2 since minecraft starts potion effects at level 0)

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Omg im so dumb 🤦‍♂️ Thanks…
Wed, 10/29/2025 - 14:25

Omg im so dumb 🤦‍♂️

Thanks anyways