Added has_silk_touch
This commit is contained in:
@@ -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" } },
|
||||
|
||||
32
source/behavior/entities/filters/filters/has_silk_touch.json
Normal file
32
source/behavior/entities/filters/filters/has_silk_touch.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user