Replace block when struck by lightning

Started by FromisHush on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Replace block when struck by lightning

I want to make it so that when a lightning strike happens near a block it turns into another block. How would I do this?

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
just make an entity tickā€¦
Mon, 04/15/2024 - 19:31

just make an entity tick procedure, and if the entity is a lightning bolt, then check if the block below it is the block you want to change, and if it is, then replace the block below the lightning bolt with the block you want to change it to