Started by
MinecraftElite99
on
Topic category: Help with Minecraft modding (Java Edition)
How could I make the player completely immune to damage? I know I can give resistance and regen etc. But is there a way to prevent the player from turning red when damage is taken and prevent the player from dying? I guess it would be like creative except mobs still target you, but nothing can harm you. I've searched around the fourm and can't seem to find a solution
Create a procedure with the event entity attacked, and if event entity is a player cancel the event using a procedure from the advanced section
https://imgur.com/a/MnnVzfN
Is it one of these? I can't find entity attacked event. Maybe it doesn't exist in the 1.19 version?
Its not a procedure, it's a global event you select in the green block every procedure has
Oh I see, thank you. The only thing I don't understand is how to check if event entity is a player? Use an if statement but is there a procedure to check for the player?