As a Bedrock modder, I have often wished to determine a block's shape.
I have seen the Block.isSolid property has been in beta for some time now. This may help in some cases, but I feel that it would be limited. Frist, the block's permutation could change how solid the box is, and secondly, there can be dispute to what is considered solid; e.g. should stairs, grass path, or mud count as solid?
Instead, it would be more useful to make the permutation's collision_box component available to read in script. Typical solid blocks would simply have this set as "true", making it easy to replace the beta isSolid property, Obviously, those with no hitbox would be "false", while others would return an object, which can then be used by the code to determine if this block is solid enough for whatever process is using it.
Please sign in to leave a comment.
0 Comments