blockception / minecraft-bedrock-json-schemas Goto Github PK
View Code? Open in Web Editor NEWThe JSON validation schema files for Minecraft bedrock
License: BSD 3-Clause "New" or "Revised" License
The JSON validation schema files for Minecraft bedrock
License: BSD 3-Clause "New" or "Revised" License
Check if the spawn rule filter: minecraft:biome_filter is update to date
Update the documentation for minecraft:behavior.random_look_around accordingly
Describe the bug
on_interact is saying there is a problem with stuff that is allowed
To Reproduce
Steps to reproduce the behavior:
Try an add "barter", "admire", cooldown_after_being_attacked" to on "on_interact" an it says its not allowed
Expected behavior
To work for "barter", "admire", "cooldown_after_being_attacked"
Additional context
https://docs.microsoft.com/en-us/minecraft/creator/reference/source/vanillabehaviorpack_snippets/entities/piglin
As seen here it does allow you to have these in there
Update the documentation for minecraft:behavior.behavior.defend_trusted_target accordingly
Update the documentation for minecraft:schedular accordingly
Check if the spawn rule filter: minecraft:entity_types is update to date
Describe the bug
One of the value choices for the "is_biome" filter has a mistake.
To Reproduce
Add this code to an entity's BP components.
"minecraft:environment_sensor": {
"triggers": [
{
"event": "self:example",
"target": "self",
"filters": {
"test": "is_biome",
"value": "the_nether"
}
}
]
}
Observed behavior
"the_nether"
produces a warning.
Expected behavior
The code above produces no errors or warnings.
Desktop (please complete the following information):
Additional context
N/A
Using dot "." in blocks.json objects throws warning, and using 2 times ":" does not.
To Reproduce
Create a new resource pack workspace.
Create inside it a block.json file containing the following
{
"format_version": [1, 1, 0],
"studio:project.block": {
"textures": "block_texture_reference"
},
"studio:project:block": {
"textures": "block_texture_reference"
}
}
You can type a dot in any part of the object name, including the
Actual Behaviour
It throws a 'String does not match the pattern of "^[\w_-:]+$".' warning.
It does not throw a warning when used ":" more than once.
Expected behavior
It should not throw any warnings for using dots.
It should throw a warning for using more than 1 ":".
Additional context
Note: not sure about the ":" behaviour is wai. Never used more than one ":".
Check if the spawn rule filter: minecraft:delay_filter is update to date
Describe the bug
When using a uniform value for the scale of a bone, the value is marked as "Incorrect Type. Expected array".
To Reproduce
Steps to reproduce the behavior:
"bones": {
"root_item": {
"rotation": [82, 1, 0],
"position": [0.5, 22, 2],
"scale": 0.6
}
}
Expected behavior
The scale value should be valid
The behavior documentation has been updated, possible needs to be updated
Update the documentation for minecraft:behavior.panic accordingly
Describe the bug
When using on_equip/on_unequip in your entity json file in BP it saying it need to be a string but it can be other things as seen here.
https://docs.microsoft.com/en-us/minecraft/creator/reference/content/entityreference/examples/entitycomponents/minecraftcomponent_equippable
look at the horse example
Version: 2.1.57
Describe the bug
The auto complete feature and syntax checker for loot tables suggests the enchatment name "curse_of_binding", however this does not work in-game, Minecraft expects the string to be "binding"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
"binding" is suggested as valid syntax, not "curse_of_binding"
Screenshots
A valid loot table entry, according to Minecraft
Desktop (please complete the following information):
EDIT: Additional note, this likely also affects the curse of vanishing, but I haven't tested that.
Describe the bug
The minecraft:health
component warns that a value
property is required when the max
property is given. This is not necessary and Minecraft doesn't complain when value
is omitted in this case; Minecraft assumes value = max.
To Reproduce
Steps to reproduce the behavior:
"minecraft:health": {
//"value": 40,
"max": 40
}
Expected behavior
Warning is not shown as property value
is not required when max
is given.
Desktop (please complete the following information):
Describe the bug
When creating a loot table with an enchanted item, "power" is missing from the enchantment names list but using it still results in a valid power enchantment on the item in-game
To Reproduce
Steps to reproduce the behavior:
Expected behavior
"power" is considered a valid enchantment value
Screenshots
Desktop (please complete the following information):
Check if the spawn rule filter: minecraft:brightness_filter is update to date
Update the documentation for minecraft:behavior.raid_garden accordingly
Visual Studio Code allows for a couple of non-standard extensions to JSON schemas, most notably snippets. Snippets are a more useful alternative to "examples"
. Snippets allow for placeholders, in-object enumeration selection, and useful case/example descriptions. Additionally, Markdown may be used for any description (via an extension โ not overriding the base "description"
schema property), allowing for better formatting or even possibly linking to online creator portal documentation.
These extensions make authoring JSON significantly faster and are designed in such a way so as not to interfere with the base JSON schema system. However, these extensions may be outside the scope of this repository if the intention is only for validation.
If extensions aren't desired here, should I make a ticket on the VS Code extension repository?
The component documentation has been update, possible needs to be updated
Update the documentation for minecraft:explore_outskirts accordingly
Hey, I'd like to use this schema in my project but at the moment it's kind of unusable because the title fields should really be descriptions. Most schema parsers use the title field as the type name, so when the title is The minecraft item identifier 1.8.0
, the generated type name is TheMinecraftItemIdentifier180
, which is less than ideal. I'm not sure if this is on purpose or if it was done by some automated tool, but it should probably be "ItemIdentifier" or something instead. I'm creating this issue to make sure there's not a good reason for this, and if there's not then I'll start fixing them + make a PR. Let me know!
Update the documentation for minecraft:behavior.jump_to_block accordingly, but check if its needed
Is your feature request related to a problem? Please describe.
I would like to use these schemas with the validation library python jsonschema. This library assumes latest draft, unless explicitly supplied. I need to manually add the "$schema"
property into the schemas, before I can validate.
Describe the solution you'd like
"$schema"
can be included in the generated schemas, either by including in source schemas, or adding into compilation pipeline.
Describe alternatives you've considered
I will inject manually, after pulling git submodule.
Additional context
Its a dumb project, but src is here: https://github.com/Bedrock-OSS/bedrock-web-validator
Update the documentation for minecraft:behavior.defend_trusted_target accordingly
Updated patterns to include json5 files
The render_controller description field needs updating.
Update the documentation for minecraft:behavior.melee_attack accordingly
Update the documentation for minecraft:pet_sleep_with_owner accordingly
Hi crew,
Back when bedrock scripting was in private beta, I registered the minecraftschemas.net domain name with the intention of doing exactly what you guys are providing in this repository. Unfortunately I never actually got around to doing anything with it and my registrar is pinging me to say that it's going to expire in 54 days.
I figured rather than just let it go, I'd offer it to you guys before the domain squatters get it. If you want it, I'm happy to transfer it to you, if you don't, that's fine too, I'll just let it lapse.
Thanks for the service you're providing :)
Update the documentation for minecraft:damage_sensor, on_damage accordingly
Hey, I'm attempting to use these schemas to create classes in C# using quicktype. However, it seems that a lot of relative paths are incorrect. For example /behaviour/entities/1.16.0/components/minecraft.breedable.json#/properties/breed_items/oneOf/0/items
refers to ../../../../general/item/identifier.json
, which is not correct. It should be ../../../general/item/identifier.json
instead. I started fixing them one by one but gave up after like 15 because I have no idea how many more there will be.
Any ideas why this could be the case? Otherwise this looks like a great project!
Check if the spawn rule filter: minecraft:height_filter is update to date
The component documentation has been update, possible needs to be updated
Describe the bug
The 1.16.0 geometry format version is not recognized and is marked as invalid. The new format version is required for the new "binding" property on bones to work.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The geometry file should be valid.
Some of the schemas still contain "description": "UNDOCUMENTED"
and is probably best to be resolved into good explanations
Describe the bug
The dialogue features allows content creators to create and run pre-made dialogues in-game from dialogue files found in the BP/dialogue/
folder. With this, I find it weird that having certain properties of a dialogue's scene
specifically only requires it to have an object instead of a string. That's not true. While these properties support rawtext
values in a form of an object, we can just simply minimize this and use string on it's own.
To Reproduce
Steps to reproduce the behavior:
BP/dialogue/
folderExpected behavior
Strings are also supported in the values, and no error validation would occur.
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A as this was done on PC
Additional context
None
There are multiple properties that maybe support block references instead of just identifiers.
These should be investigated.
Check if the spawn rule filter: minecraft:density_limit is update to date
Create useful examples for items / properties
Update the documentation for minecraft:behavior.look_at_player accordingly
Is your feature request related to a problem? Please describe.
Documentation got updated on minecraft:equipment, update the schemas accordingly
Update the documentation for minecraft:behavior.ram_attack accordingly
Update the documentation for minecraft:behavior.play_dead accordingly, but check if its needed
Check if the spawn rule filter: minecraft:difficulty_filter is update to date
Update the documentation for minecraft:behavior.leap_at_target accordingly
Update the documentation for minecraft:behavior.go_home accordingly
Check if the spawn rule filter: minecraft:herd is update to date
Update the documentation for minecraft:behavior.admire_item accordingly
Update the documentation for minecraft:behavior.pickup_items accordingly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.