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.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": [
{
"format_version": "1.8.0",
@@ -13,11 +28,11 @@
"additionalProperties": false,
"required": ["format_version", "minecraft:spawn_rules"],
"properties": {
"format_version": {
"format_version": {
"title": "Format Version",
"description": "A version that tells minecraft what type of data format can be expected when reading this file.",
"enum": ["1.8.0", "1.10.0", "1.12.0"]
},
},
"minecraft:spawn_rules": {
"type": "object",
"title": "Spawn Rules",