Adding vscode snippets for events and triggers

This commit is contained in:
DaanV2
2021-11-28 12:47:42 +01:00
parent 8472a317eb
commit ebfe390188
2 changed files with 16 additions and 0 deletions

View File

@@ -3,6 +3,12 @@
"title": "Event",
"description": "Minecraft behavior event",
"examples": [{ "event": "example:foo", "target": "self" }],
"defaultSnippets": [
{
"label": "New Event",
"body": { "event": "$1", "target": "self" }
}
],
"oneOf": [
{ "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire" },
{

View File

@@ -9,6 +9,16 @@
"event": "to:foo"
}
],
"defaultSnippets": [
{
"label": "New Trigger",
"body": { "event": "$1", "target": "self" }
},
{
"label": "New Trigger - Filtered",
"body": { "event": "$1", "target": "self", "filters": [{ "test": "$2", "value": "$3" }] }
}
],
"oneOf": [
{ "type": "string" },
{