Having issues with a if do else statement

Started by Cr3EpZ on

Topic category: Help with modding (Java Edition)

Last seen on 05:25, 13. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Having issues with a if do else statement

I have been trying to make this work for a bit but have no idea how to

 

If is Event/target entity creature type undead

Do Execute Command /"effect give @e[distance=..5] minecraft:instant_healing 10 3 at x: x y: y z: z

Else Execute Command /"effect give @e[distance=..5] minecraft:instant_damage 10 3 x: x y: y z: z

 

I can't get it as an image so I just typed it out