add 'uv-lock' block property

This commit is contained in:
MihailRis 2026-11-02 00:03:25 +03:00
parent c2777eba09
commit 463a439089
8 changed files with 131 additions and 12 deletions

View file

@ -154,6 +154,7 @@ void Block::cloneTo(Block& dst) {
dst.replaceable = replaceable;
dst.breakable = breakable;
dst.rotatable = rotatable;
dst.uvLock = uvLock;
dst.grounded = grounded;
dst.hidden = hidden;
dst.rotations = rotations;

View file

@ -250,6 +250,10 @@ public:
/// @brief Can the block be oriented different ways
bool rotatable = false;
/// @brief Keep custom model textures aligned to world axes
/// when the block is rotated
bool uvLock = false;
/// @brief Can the block exist without physical support be a solid block
/// below
bool grounded = false;