How to make a broken block check itself and then replace itself

Started by Peteypops13 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a broken block check itself and then replace itself

So I'm trying to make it so that when a block is broken, if it was stone, then it replaces the block with another block.

The best I have so far is this but it isn't working. If anyone could help that would be greatly appreciated

When a block is broken

If [Is block at x, y, z the same block as stone]

Do [Place cracked stone at x, y, z]

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
check if [is {provided…
Sun, 03/01/2026 - 19:29

check if [is {provided blockstate} the same as {block}], maybe when the procedure triggers there isnt any block at xyz anymore