How do I have a block change when struck by lightning?

Started by afk on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 months ago
Joined Mar 2023
Points:
368

User statistics:

  • Modifications: 0
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 16
How do I have a block change when struck by lightning?

The title says it all- I want to make it so that when lightning strikes within a certain radius of a block, it replaces itself with this different block.

I've tried doing this using the "does entity exist at x y z" block, since lightning is counted as an entity, but it seems to have no effect.

Any help is appreciated.