Predicates no longer support unquoted booleans and numbers in blockstates
Steps to reproduce:
- Download the first datapack, broken.zip, which contains a predicate with the following contents:
{ "condition": "minecraft:location_check", "predicate": { "block": { "blocks": [ "minecraft:snow" ], "state": { "layers": 1 } } } } - Note the unquoted 1 in the layers block state.
- Install it into a world in 23w32a.
- Note that the log errors on this file, noting that it is not a json array.
- Download the second file, not_broken.zip, which contains the same file, with the 1 now quoted.
- Replace the previous datapack
- See the error has now disappeared
- This is also the case for predicates containing unquoted booleans.
- This error was not the case in previous versions, which supported unquoted booleans and numbers.
2023-08-09, 03:49 PM
2023-10-01, 10:10 AM
2023-09-04, 10:05 AM
9
7
-