Mojira Archive
MCPE-49532

minecraft:blockstate scripting component not working with integer-based states

Repro:

  1. Create a new world with the behaviour pack installed
  2. Place down a snow layer
  3. Right click the snow layer

There will be an error along the lines of: 

[Scripting][error]-ScriptBlockStateComponent | Invalid type passed for block state 'height'

The script is simply increasing the height of the snow layer to values defined in the docs, but results with this error.

What should happen is that the snow layer height will increase and reset, as per the code in the server script. Other blockstates (string based etc.) seem to work fine.

This script functioned last in 1.12.0.28.

Incomplete

destruc7i0n

2019-07-26, 12:46 AM

2021-08-06, 05:50 PM

2021-08-06, 05:50 PM

4

3

Unconfirmed

scripting-api

1.13.0.2 Beta

-