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

Started by afk on

Topic category: Help with modding (Java Edition)

Last seen on 21:18, 13. Apr 2024
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.