How to make a player not take damage from their own lightning sword?

Started by MattiDragon835 on Mon, 04/13/2020 - 09:20

Topic category: Help with modding (Java Edition)

Last seen on 05:34, 20. Jul 2021
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a player not take damage from their own lightning sword?
Mon, 04/13/2020 - 09:20

So as the tittle says i am trying to make a lightning sword. Well if you use it in survival it does work but deals damage to the player. Making the player immune to damage before the lightning doesn't work because the provided entity is the enemy. I also tried to run it from a attack global trigger but i couldn't get it to work. I would appreciate if you could help me.

Last seen on 18:33, 30. Jun 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
the player always will get…
Sun, 04/26/2020 - 09:14

the player always will get damage when you use a sword with lightning bolt.There is no way to avoid it.

Last seen on 06:42, 25. Jul 2021
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Like, ask for a procedure to…
Sun, 04/26/2020 - 09:35

Like, ask for a procedure to make player immune to lightning, explosion, poison, wither, .....

Last seen on 05:34, 20. Jul 2021
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
thanks for the response.
Sat, 05/16/2020 - 11:11

thanks for the response.