Add snippets (#278)

This commit is contained in:
Beltsazar
2024-04-29 20:24:55 +07:00
committed by GitHub
parent bd8330c5ad
commit ebac7a0ab1
12 changed files with 193 additions and 3 deletions

View File

@@ -1,6 +1,21 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$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": [
{
"format_version": "1.20.41",

View File

@@ -1,6 +1,17 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$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": {} } } }],
"additionalProperties": false,
"type": "object",

View File

@@ -1,6 +1,29 @@
{
"$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.20.41",

View File

@@ -1,6 +1,29 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$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": [
{
"format_version": "1.20.41",

View File

@@ -1,6 +1,21 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$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": [
{
"format_version": "1.20.41",