[SOLVED] Be immune to lightning for player

Started by Gavydog on

Topic category: Help with modding (Java Edition)

Last seen on 01:30, 23. Sep 2020
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED] Be immune to lightning for player
Wed, 06/24/2020 - 11:57 (edited)

Yeah, so I have this axe which summons lightning when you attack a mob, but the lightning damages the player also. Any way to stop the player from being damaged? 

Also if this is possible I would like the lightning bolt to not cause fire. Thx!

Edited by Gavydog on Wed, 06/24/2020 - 11:57
Last seen on 01:30, 23. Sep 2020
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I cant find current entity…
Wed, 06/24/2020 - 08:30

I cant find current entity for some reason... only source and target. And no i'm not calling it

Last seen on 09:48, 26. Sep 2022
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Target is Current for 1.15
Wed, 06/24/2020 - 16:17

Target is Current for 1.15

Last seen on 03:52, 31. Dec 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi! I know this is old but I…
Wed, 12/30/2020 - 18:05

Hi! I know this is old but I have a question: How would you do this with multiple damage types?

Last seen on 03:52, 31. Dec 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Never mind I figured it out.
Thu, 12/31/2020 - 16:33

Never mind I figured it out.