Add nbt operations

This commit is contained in:
Misode
2019-09-13 13:36:49 +02:00
parent 9e97ccd363
commit 6a4e9a5c38
3 changed files with 61 additions and 1 deletions

View File

@@ -190,7 +190,7 @@
},
{
"id": "tag",
"type": "string",
"type": "nbt",
"require": [
"minecraft:set_nbt"
]
@@ -319,6 +319,15 @@
"minecraft:set_attributes"
]
},
{
"id": "ops",
"type": "array",
"button": "field",
"values": "nbt_operation",
"require": [
"minecraft:copy_nbt"
]
},
{
"id": "conditions",
"type": "array",
@@ -405,6 +414,37 @@
]
}
]
},
{
"id": "nbt_operation",
"type": "object",
"color": "dark",
"default": {
"operation": "replace"
},
"fields": [
{
"id": "source",
"type": "string",
"class": "code"
},
{
"id": "target",
"type": "string",
"class": "code"
},
{
"id": "op",
"type": "enum",
"source": "operation.type",
"default": "replace",
"values": [
"replace",
"append",
"merge"
]
}
]
}
]
}