Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TreaBeane opened this issue Oct 29, 2024 · 0 comments

Comments

@TreaBeane
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant