True immortality ?

Started by MinecraftElite99 on

Topic category: Help with modding (Java Edition)

Last seen on 22:20, 21. Mar 2023
Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
True immortality ?

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

Last seen on 22:51, 18. May 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a procedure with the…
Tue, 10/11/2022 - 17:39

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

Last seen on 22:20, 21. Mar 2023
Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://imgur.com/a/MnnVzfN…
Tue, 10/11/2022 - 17:45

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?

Last seen on 22:51, 18. May 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Its not a procedure, it's a…
Tue, 10/11/2022 - 18:06

Its not a procedure, it's a global event you select in the green block every procedure has

Last seen on 22:20, 21. Mar 2023
Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh I see, thank you. The…
Tue, 10/11/2022 - 19:34

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?