How do I check if a block was naturally created?

Started by Your mom scott on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I check if a block was naturally created?

Is it possible to see if a certain block was player-placed or naturally placed?

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
to do this, make a global…
Fri, 01/09/2026 - 14:36

to do this, make a global trigger that is set to "block is placed" and add the "set nbt logic tag "tagName" of block at x y z to true." Rename tagName to playerPlaced. Now you can check if it is player placed in another procedure by checking the nbt playerPlaced. if it is true it is player placed. if false it is natural

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, that will work, but…
Fri, 01/09/2026 - 14:48

Yes, that will work, but only for tile entities/block entities (a checkbox that you need to enable).

 

You could also maybe try doing something similar with blockstates, but again, that would cause it to only work for certain blocks with a specific blockstate added to them.