How do I make a Lightning Block

Started by Profsemio on

Topic category: Help with modding (Java Edition)

Last seen on 20:49, 27. Dec 2023
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a Lightning Block

Hey ,

 

So i wanna make a mod that has a block and if u come near to it u get struck by lightning but i dont know how i schould do that can anyone help me

Last seen on 13:31, 2. Feb 2024
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I would have done something…
Sun, 12/17/2023 - 21:31

I would have done something like that: 

 

Last seen on 20:49, 27. Dec 2023
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you  
Wed, 12/27/2023 - 16:25

Thank you

 

Last seen on 01:24, 26. Feb 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could make a procedure…
Mon, 01/22/2024 - 17:03

you could make a procedure that runs on the player tick, and check if your lightning block is within a certain radius of the player with the "check for block in cube" block, and if it is, then summon a lightning bolt at the position of the player