Started by
Elvis_The_Snail
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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)
Omg im so dumb 🤦♂️
Thanks anyways