Updated the anger_level.json "default_annoyingness" can be a float, int, or string, and the warden is currently using an integer so I've made a change so this will use a "number" instead of a "string" for its value type as it's more flexible. Also added a missing warden argument called "default_projectile_annoyingness": 35 Added some documentation for the above.
66 lines
2.3 KiB
JSON
66 lines
2.3 KiB
JSON
{
|
|
"$id": "blockception.minecraft.behavior.entities.minecraft.anger_level",
|
|
"type": "object",
|
|
"title": "Anger Level",
|
|
"description": "Allows this entity to track anger towards a set of nuisances",
|
|
"additionalProperties": false,
|
|
"required": [],
|
|
"properties": {
|
|
"anger_decrement_interval": {
|
|
"title": "Anger Decrement Interval",
|
|
"type": "number",
|
|
"default": 1.0,
|
|
"description": "Anger level will decay over time. Defines how often anger towards all nuisances will be decreased by one"
|
|
},
|
|
"angry_boost": {
|
|
"title": "Angry Boost",
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"default": 20,
|
|
"description": "Anger boost applied to angry threshold when mob gets angry."
|
|
},
|
|
"angry_threshold": {
|
|
"title": "Angry Threshold",
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"default": 80,
|
|
"description": "Threshold that define when the mob is considered angry at a nuisance."
|
|
},
|
|
"default_annoyingness": {
|
|
"title": "Default Annoyingness",
|
|
"type": "number",
|
|
"default": 0,
|
|
"description": "The default amount of annoyingness for any given nuisance. Specifies how much to raise anger level on each provocation"
|
|
},
|
|
"default_projectile_annoyingness": {
|
|
"title": "Default Projectile Annoyingness",
|
|
"type": "number",
|
|
"default": 0,
|
|
"description": "The default amount of annoyingness for projectile nuisance. Specifies how much to raise anger level on each provocation"
|
|
},
|
|
"max_anger": {
|
|
"title": "Maximum Anger",
|
|
"type": "integer",
|
|
"default": 100,
|
|
"minimum": 0,
|
|
"description": "The maximum anger level that can be reached. Applies to any nuisance"
|
|
},
|
|
"nuisance_filter": {
|
|
"title": "Nuisance Filter",
|
|
"$ref": "../../filters/filters.json",
|
|
"description": "Filter that is applied to determine if a mob can be a nuisance."
|
|
},
|
|
"on_increase_sounds": {
|
|
"title": "On Increase Sounds",
|
|
"$ref": "../../filters/filters.json"
|
|
},
|
|
"remove_targets_below_angry_threshold": {
|
|
"title": "Remove Targets Below Angry Threshold",
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Defines if the mob should remove target if it falls below 'angry' threshold."
|
|
}
|
|
},
|
|
"examples": []
|
|
}
|