Replace block when struck by lightning

Started by FromisHush on

Topic category: Help with modding (Java Edition)

Last seen on 20:14, 13. Apr 2024
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?

Last seen on 17:58, 19. Apr 2024
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