-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
117 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
source/behavior/entities/filters/filters/has_damaged_equipment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"$id": "blockception.minecraft.behavior.entities.filters.has_damaged_equipment", | ||
"type": "object", | ||
"title": "Has Damaged Equipment", | ||
"description": "Tests for the presence of a damaged named item in the designated slot of the subject entity.", | ||
"required": [ "value" ], | ||
"properties": { | ||
"test": { | ||
"type": "string", | ||
"const": "has_equipment", | ||
"description": "Tests for the presence of a damaged named item in the designated slot of the subject entity.", | ||
"title": "Test" | ||
}, | ||
"domain": { | ||
"description": "The equipment location to test.", | ||
"default": "any", | ||
"enum": [ "any", "inventory", "armor", "feet", "hand", "head", "leg", "torso" ], | ||
"title": "Domain" | ||
}, | ||
"operator": { | ||
"$ref": "./types/operator.json" | ||
}, | ||
"subject": { | ||
"$ref": "./types/subject.json" | ||
}, | ||
"value": { | ||
"description": "The item name to look for.", | ||
"type": "string", | ||
"$ref": "../../../../general/item/identifier.json", | ||
"title": "Value" | ||
} | ||
}, | ||
"examples": [ | ||
{ | ||
"test": "has_damaged_equipment", | ||
"value": "example" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"$id": "blockception.minecraft.behavior.entities.filters.is_sitting", | ||
"type": "object", | ||
"title": "Is Sitting", | ||
"description": "Returns true if the subject entity is sitting", | ||
"properties": { | ||
"test": { | ||
"type": "string", | ||
"title": "Test Property", | ||
"description": "Returns true if the subject entity is sitting." | ||
}, | ||
"operator": { | ||
"$ref": "./types/operator.json" | ||
}, | ||
"subject": { | ||
"$ref": "./types/subject.json" | ||
}, | ||
"value": { | ||
"title": "Value", | ||
"description": "True or false.", | ||
"type": "boolean", | ||
"default": true | ||
} | ||
}, | ||
"examples": [ | ||
{ | ||
"test": "is_sitting", | ||
"value": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters