mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +00:00
Add nbt operations
This commit is contained in:
@@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user