Mojira Archive
MCPE-169939

"bone_visibility" does not have Molang support

In previous releases "part_visibility" accepted molang but now that it was removed and placed inside "geometry" as "bone_visibility" it no longer supports molang and only accepts boolean values.

     "minecraft:geometry": {
        "identifier": "geometry.custom_block",

        "bone_visibility": { // does not have Molang support
          "gate": true, //"q.block_property('furnace:gate') == 0",
          "open_gate": false //"q.block_property('furnace:gate') == 1"
        }
      } ...

If you try to use a molang value, the block will simply fail and not load into the game.

[Json][error]-block_definitions | C:/Users/Minec/AppData/Local/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/development_behavior_packs/experimental | blocks/custom_block.json | upgrade blocks/custom_block.json |  -> minecraft:block -> components -> minecraft:geometry -> bone_visibility:  *invalid value*

I created a world with a custom block with which the player interacting with the block should open a gate, that is, a block state changes from 0 to 1 and the first 3d model is hidden and the second is shown.

To replicate the problem, simply change the boolean values to the commented molang values.

Fixed

Fabián Marín

2023-04-27, 01:41 AM

2024-07-02, 11:23 PM

2024-07-02, 11:23 PM

14

5

Confirmed

1022131

block, component, molang

1.19.80, 1.19.81 Hotfix, 1.19.83 Hotfix, 1.20.0

1.20.10