Add snippets (#278)
This commit is contained in:
@@ -1,6 +1,21 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "blockception.minecraft.behavior.animation_controller",
|
"$id": "blockception.minecraft.behavior.animation_controller",
|
||||||
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"label": "New animation controller",
|
||||||
|
"body": {
|
||||||
|
"format_version": "${1:1.10.0}",
|
||||||
|
"animation_controllers": {
|
||||||
|
"controller.animation.${2:${TM_FILENAME/[\\.].*//}}": {
|
||||||
|
"states": {
|
||||||
|
"default": "^{$3}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"format_version": "1.20.41",
|
"format_version": "1.20.41",
|
||||||
|
|||||||
@@ -1,6 +1,17 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "blockception.minecraft.behavior.animations",
|
"$id": "blockception.minecraft.behavior.animations",
|
||||||
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"label": "New animation",
|
||||||
|
"body": {
|
||||||
|
"format_version": "${1:1.10.0}",
|
||||||
|
"animations": {
|
||||||
|
"animation.${2:${TM_FILENAME/[\\.].*//}}": "^{$3}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"examples": [{ "format_version": "1.20.41", "animations": { "animation.example": {} } }],
|
"examples": [{ "format_version": "1.20.41", "animations": { "animation.example": {} } }],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"animationspec": {
|
"animationspec": {
|
||||||
|
|||||||
@@ -10,5 +10,19 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"format_version": { "$ref": "../../general/format_version.json" },
|
"format_version": { "$ref": "../../general/format_version.json" },
|
||||||
"minecraft:block": { "$ref": "./format/minecraft.block.json" }
|
"minecraft:block": { "$ref": "./format/minecraft.block.json" }
|
||||||
|
},
|
||||||
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"label": "New block",
|
||||||
|
"body": {
|
||||||
|
"format_version": "${1:1.20.41}",
|
||||||
|
"minecraft:block": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "$2:${3:${TM_FILENAME/[\\.].*//}}"
|
||||||
|
},
|
||||||
|
"components": "^{$4}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,6 +1,18 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "blockception.minecraft.behavior.dialogue",
|
"$id": "blockception.minecraft.behavior.dialogue",
|
||||||
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"format_version": "${1:1.20.41}",
|
||||||
|
"minecraft:npc_dialogue": {
|
||||||
|
"scenes": [
|
||||||
|
{
|
||||||
|
"scene_tag": "$2"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"format_version": "1.20.41",
|
"format_version": "1.20.41",
|
||||||
|
|||||||
@@ -1,6 +1,23 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "blockception.minecraft.behavior.entities",
|
"$id": "blockception.minecraft.behavior.entities",
|
||||||
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"label": "New entity",
|
||||||
|
"body": {
|
||||||
|
"format_version": "${1:1.20.41}",
|
||||||
|
"minecraft:entity": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "$2:${3:${TM_FILENAME/[\\.].*//}}",
|
||||||
|
"is_spawnable": "^{4:true}",
|
||||||
|
"is_summonable": "^{5:true}",
|
||||||
|
"is_experimental": "^{6:false}"
|
||||||
|
},
|
||||||
|
"components": "^{$7}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"format_version": "1.20.41",
|
"format_version": "1.20.41",
|
||||||
|
|||||||
@@ -1,5 +1,24 @@
|
|||||||
{
|
{
|
||||||
"$id": "blockception.minecraft.behavior.items",
|
"$id": "blockception.minecraft.behavior.items",
|
||||||
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"label": "New item",
|
||||||
|
"body": {
|
||||||
|
"format_version": "${1:1.20.41}",
|
||||||
|
"minecraft:item": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "$2:${3:${TM_FILENAME/[\\.].*//}}",
|
||||||
|
"menu_category": {
|
||||||
|
"category": "${4:items}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"components": {
|
||||||
|
"minecraft:icon": "$2.${3:${TM_FILENAME/[\\.].*//}}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"description": "Minecraft items",
|
"description": "Minecraft items",
|
||||||
"required": ["format_version", "minecraft:item"],
|
"required": ["format_version", "minecraft:item"],
|
||||||
"title": "Item",
|
"title": "Item",
|
||||||
|
|||||||
@@ -1,6 +1,21 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "blockception.behavior.spawn_rules",
|
"$id": "blockception.behavior.spawn_rules",
|
||||||
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"label": "New spawn rule",
|
||||||
|
"body": {
|
||||||
|
"format_version": "${1:1.8.0}",
|
||||||
|
"minecraft:spawn_rules": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "$2:${3:${TM_FILENAME/[\\.].*//}}",
|
||||||
|
"population_control": "${4:ambient}"
|
||||||
|
},
|
||||||
|
"conditions": ["^{$5}"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"format_version": "1.8.0",
|
"format_version": "1.8.0",
|
||||||
|
|||||||
@@ -1,6 +1,21 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "blockception.minecraft.resource.animation_controller",
|
"$id": "blockception.minecraft.resource.animation_controller",
|
||||||
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"label": "New animation controller",
|
||||||
|
"body": {
|
||||||
|
"format_version": "${1:1.10.0}",
|
||||||
|
"animation_controllers": {
|
||||||
|
"controller.animation.${2:${TM_FILENAME/[\\.].*//}}": {
|
||||||
|
"states": {
|
||||||
|
"default": "^{$3}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"format_version": "1.20.41",
|
"format_version": "1.20.41",
|
||||||
|
|||||||
@@ -1,6 +1,17 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "blockception.minecraft.resource.actor_animation",
|
"$id": "blockception.minecraft.resource.actor_animation",
|
||||||
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"label": "New animation",
|
||||||
|
"body": {
|
||||||
|
"format_version": "${1:1.10.0}",
|
||||||
|
"animations": {
|
||||||
|
"animation.${2:${TM_FILENAME/[\\.].*//}}": "^{$3}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"examples": [{ "format_version": "1.20.41", "animations": { "animation.annie.idle": { "loop": true, "animation_length": 2.12, "bones": {} } } }],
|
"examples": [{ "format_version": "1.20.41", "animations": { "animation.annie.idle": { "loop": true, "animation_length": 2.12, "bones": {} } } }],
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|||||||
@@ -1,6 +1,29 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "blockception.minecraft.resource.attachables",
|
"$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": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"format_version": "1.20.41",
|
"format_version": "1.20.41",
|
||||||
|
|||||||
@@ -1,6 +1,29 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "blockception.minecraft.resource.entity",
|
"$id": "blockception.minecraft.resource.entity",
|
||||||
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"label": "New entity",
|
||||||
|
"body": {
|
||||||
|
"format_version": "${1:1.10.0}",
|
||||||
|
"minecraft:client_entity": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "$2:${3:${TM_FILENAME/[\\.].*//}}",
|
||||||
|
"materials": {
|
||||||
|
"default": "entity_alphatest"
|
||||||
|
},
|
||||||
|
"textures": {
|
||||||
|
"default": "textures/entity/${3:${TM_FILENAME/[\\.].*//}}"
|
||||||
|
},
|
||||||
|
"geometry": {
|
||||||
|
"default": "geometry.${3:${TM_FILENAME/[\\.].*//}}"
|
||||||
|
},
|
||||||
|
"render_controllers": ["controller.render.default"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"format_version": "1.20.41",
|
"format_version": "1.20.41",
|
||||||
|
|||||||
@@ -1,6 +1,21 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "blockception.minecraft.render_controllers",
|
"$id": "blockception.minecraft.render_controllers",
|
||||||
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"label": "New render controller",
|
||||||
|
"body": {
|
||||||
|
"format_version": "${1:1.10.0}",
|
||||||
|
"render_controllers": {
|
||||||
|
"controller.render.${2:${TM_FILENAME/[\\.].*//}}": {
|
||||||
|
"geometry": "Geometry.${3:default}",
|
||||||
|
"materials": [{ "*": "Material.${4:default}" }],
|
||||||
|
"textures": ["Texture.${5:default}"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"format_version": "1.20.41",
|
"format_version": "1.20.41",
|
||||||
|
|||||||
Reference in New Issue
Block a user