Added has_silk_touch

This commit is contained in:
DaanV2
2022-04-20 12:11:11 +02:00
parent e8f609f04a
commit 36866067ca
2 changed files with 33 additions and 0 deletions

View File

@@ -91,6 +91,7 @@
{ "if": { "properties": { "test": { "const": "has_mob_effect" } } }, "then": { "$ref": "./filters/has_mob_effect.json" } },
{ "if": { "properties": { "test": { "const": "has_nametag" } } }, "then": { "$ref": "./filters/has_nametag.json" } },
{ "if": { "properties": { "test": { "const": "has_ranged_weapon" } } }, "then": { "$ref": "./filters/has_ranged_weapon.json" } },
{ "if": { "properties": { "test": { "const": "has_silk_touch" } } }, "then": { "$ref": "./filters/has_silk_touch.json" } },
{ "if": { "properties": { "test": { "const": "has_tag" } } }, "then": { "$ref": "./filters/has_tag.json" } },
{ "if": { "properties": { "test": { "const": "has_target" } } }, "then": { "$ref": "./filters/has_target.json" } },
{ "if": { "properties": { "test": { "const": "has_trade_supply" } } }, "then": { "$ref": "./filters/has_trade_supply.json" } },

View File

@@ -0,0 +1,32 @@
{
"$id": "blockception.minecraft.behavior.entities.filters.has_silk_touch",
"type": "object",
"title": "Has Silk Touch",
"description": "Tests if the subject is holding an item with silk touch.",
"properties": {
"test": {
"type": "string",
"title": "Test",
"description": "The test property"
},
"operator": {
"$ref": "./types/operator.json"
},
"subject": {
"$ref": "./types/subject.json"
},
"value": {
"description": "True or false.",
"type": "boolean",
"default": true,
"title": "Value"
}
},
"examples": [
{
"test": "has_silk_touch",
"subject": "other",
"value": true
}
]
}