An "is block replaceable" procedure

Started by STARRYSOCK on

Topic category: Feature requests and ideas for MCreator

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
An "is block replaceable" procedure

A way to check if a block is replaceable (aka grass, ferns, liquids, etc, which can have a block placed directly into them) via procedures would be very handy.

Bonus points for a "can block be walked through" procedure as well, afaik there's no way to test for this in procedures by default.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The replaceable part is also…
Thu, 11/06/2025 - 10:20

The replaceable part is also a tag, you can see this by making a replaceable block in MCreator.

For the collision, yeah that'd probably be a pretty good procedure block to get but for now you can use a custom code snippet with something like this,

world.getBlockState(BlockPos.containing(x, y, z)).getCollisionShape(world, BlockPos.containing(x, y, z)).isEmpty()