How do i create a neutral mob that attacks when struck by lightning

Started by Tonyxcode on Fri, 04/15/2022 - 10:28

Topic category: Help with MCreator software

Last seen on 10:37, 19. Apr 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do i create a neutral mob that attacks when struck by lightning
Fri, 04/15/2022 - 10:28

Hi. so, im wanting to create a mob that attacks you when it is struck by lightning. please can somebody help me?

Last seen on 21:31, 26. Jun 2022
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
when the entity is struck by…
Thu, 05/12/2022 - 15:26

when the entity is struck by lightning, set the entity's NBT variable to true, and use a condition to make it only attack when the NBT variable is true