Started by
Evansomething
on
Topic category: Help with Minecraft modding (Java Edition)
i wanna do a potion affect like the one in the mod Pick Your Poison and it uses accumulative damage affect a state of invincibility and takes all the damage that you gained in that state and adds it after the effect expires
You need two procedures
https://imgur.com/hqNj42p
https://imgur.com/PEWNO8A (set this one to the trigger "when effect expires" in the effect settings)
damage is a number global variable of type "player_persistent"
so for the set number block where is the "for entity" at?
the "for entity:" part only appears for player_persistent or player_lifetime variables, if you don't see it that means that you're using a variable of a different type
thank you but would you also know how to change the heart texture during the effect or nah?
I don't know if it's even possible, MAYBE since this plugin: https://mcreator.net/plugin/107323/new-procedures-plus adds some procedures that can change vanilla textures you could change the texture of the hearts too, but I'm really just guessing