Mojang / minecraft-creator-tools

A set of tools for creating content and add-ons for Minecraft Bedrock Edition.
Other
70 stars 3 forks source link

Doesn't Properly Lint Block minecraft:selection_box or minecraft:collision_box #45

Open TreaBeane opened 2 weeks ago

TreaBeane commented 2 weeks ago

Running validate with blocks that have custom "minecraft:selection_box" and "minecraft:collision_box", results in the validator warning:

WARNING: [JSON121] (/blocks/myblock.block.json) Wrong type: /minecraft:block/components/minecraft:collision_box type must be boolean [in {   "origin": [     -7.5,     0,     -7.5   ],   "size": [     15,     15,   ...]
WARNING: [JSON121] (/blocks/myblock.block.json) maximum /minecraft:block/components/minecraft:collision_box/size/0 must be <= 8
WARNING: [JSON121] (/blocks/myblock.block.json) maximum /minecraft:block/components/minecraft:collision_box/size/2 must be <= 8
WARNING: [JSON121] (/blocks/myblock.block.json) oneOf /minecraft:block/components/minecraft:collision_box must match exactly one schema in oneOf [in {   "origin": [     -7.5,     0,     -7.5   ],   "size": [     15,     15,   ...]
WARNING: [JSON121] (/blocks/myblock.block.json) Wrong type: /minecraft:block/components/minecraft:selection_box type must be boolean [in {   "origin": [     -7.5,     0,     -7.5   ],   "size": [     15,     15,   ...]
WARNING: [JSON121] (/blocks/myblock.block.json) maximum /minecraft:block/components/minecraft:selection_box/size/0 must be <= 8
WARNING: [JSON121] (/blocks/myblock.block.json) maximum /minecraft:block/components/minecraft:selection_box/size/2 must be <= 8
WARNING: [JSON121] (/blocks/myblock.block.json) oneOf /minecraft:block/components/minecraft:selection_box must match exactly one schema in oneOf [in {   "origin": [     -7.5,     0,     -7.5   ],   "size": [     15,     15,   ...]

Expected to lint project with non bool values set for these properties.

Official documentation of the rule: https://learn.microsoft.com/en-us/minecraft/creator/reference/content/blockreference/examples/blockcomponents/minecraftblock_selection_box?view=minecraft-bedrock-stable