Files
minecraft-bedrock-json-schemas/source/resource/attachables/attachables.json
Xterionix 822ed538f9 Some more misc fixes (#295)
* - Add mob effects enum

* - Add biome and biome tags to enum

* - Fix feature rules only showing with 1.13.0 format version

* - Replace 1.20.41 -> 1.20.80
- Make certain format versions restricted to 1.10.0

* - Remove example stick (having this here was annoying)

* - Fix

* - Remove empty sounds example

* - Misc fixes for entity components
2024-06-28 21:06:53 +02:00

49 lines
1.8 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.resource.attachables",
"defaultSnippets": [
{
"label": "New attachable",
"body": {
"format_version": "${1:1.10.0}",
"minecraft:attachable": {
"description": {
"identifier": "$2:${3:${TM_FILENAME/[\\.].*//}}",
"materials": {
"default": "entity_alphatest"
},
"textures": {
"default": "textures/items/${3:${TM_FILENAME/[\\.].*//}}"
},
"geometry": {
"default": "geometry.${3:${TM_FILENAME/[\\.].*//}}"
},
"render_controllers": ["controller.render.default"]
}
}
}
}
],
"examples": [
{
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
"identifier": "minecraft:item",
"materials": { "default": "entity_alphatest", "enchanted": "entity_alphatest_glint" },
"textures": { "default": "textures/items/item" },
"geometry": { "default": "geometry.item" },
"scripts": {},
"render_controllers": ["controller.render.item"]
}
}
}
],
"allOf": [
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, "then": { "$ref": "./1.8.0/attachables.json" } },
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.10" } } }, "then": { "$ref": "./1.10.0/attachables.json" } },
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.10.0" } } }, "then": { "$ref": "./1.10.0/attachables.json" } },
{ "properties": { "format_version": { "$ref": "../../general/format_version.json" } } }
]
}