diff --git a/source/behavior/entities/format/behaviors/sniff.json b/source/behavior/entities/format/behaviors/sniff.json new file mode 100644 index 00000000..32549d1d --- /dev/null +++ b/source/behavior/entities/format/behaviors/sniff.json @@ -0,0 +1,42 @@ +{ + "$id": "blockception.minecraft.behavior.entities.minecraft.behavior.sniff", + "additionalProperties": false, + "type": "object", + "title": "Sniff", + "description": "Sniff compels this entity to detect the nearest player within \"sniffing_radius\" and update its minecraft:suspect_tracking component state.", + "properties": { + "priority": { + "$ref": "./types/priority.json" + }, + "cooldown_range": { + "title": "Cooldown Range", + "$ref": "../../../../general/vectors/number2.json", + "default": [3.0, 10.0], + "description": "Cooldown range between sniffs in seconds." + }, + "duration": { + "title": "Duration", + "type": "number", + "default": 1.0, + "description": "Sniffing duration in seconds" + }, + "sniffing_radius": { + "title": "Sniffing Radius", + "type": "number", + "default": 5.0, + "description": "Mob detection radius." + }, + "suspicion_radius_horizontal": { + "title": "Suspicion Radius Horizontal", + "type": "number", + "default": 3.0, + "description": "Mob suspicion horizontal radius. When a player is within this radius horizontally, the anger level towards that player is increased." + }, + "suspicion_radius_vertical": { + "title": "Suspicion Radius Vertical", + "type": "number", + "default": 3.0, + "description": "Mob suspicion vertical radius. When a player is within this radius vertically, the anger level towards that player is increased." + } + } +}