diff --git a/source/behavior/entities/format/behaviors/drink_milk.json b/source/behavior/entities/format/behaviors/drink_milk.json new file mode 100644 index 00000000..f992a5e3 --- /dev/null +++ b/source/behavior/entities/format/behaviors/drink_milk.json @@ -0,0 +1,26 @@ +{ + "$id": "blockception.minecraft.behavior.entities.minecraft.behavior.drink_milk", + "type": "object", + "title": "Drink Milk", + "description": "Allows the mob to drink milk based on specified environment conditions.", + "additionalProperties": false, + "properties": { + "priority": { "$ref": "./types/priority.json" }, + "cooldown_seconds": { + "title": "Cooldown Seconds", + "type": "number", + "default": 5.0, + "description": "Time (in seconds) that the goal is on cooldown before it can be used again." + }, + "filters": { + "title": "Filters", + "$ref": "../../filters/filters.json", + "description": "Conditions that need to be met for the behavior to start." + } + }, + "examples": [ + { + "cooldown_seconds": 5.0 + } + ] +} diff --git a/source/behavior/entities/format/components.json b/source/behavior/entities/format/components.json index e24e0d84..27edb56a 100644 --- a/source/behavior/entities/format/components.json +++ b/source/behavior/entities/format/components.json @@ -213,6 +213,7 @@ "minecraft:behavior.dragonscanning": { "$ref": "./behaviors/dragonscanning.json" }, "minecraft:behavior.dragonstrafeplayer": { "$ref": "./behaviors/dragonstrafeplayer.json" }, "minecraft:behavior.dragontakeoff": { "$ref": "./behaviors/dragontakeoff.json" }, + "minecraft:behavior.drink_milk": { "$ref": "./behaviors/drink_milk.json" }, "minecraft:behavior.drink_potion": { "$ref": "./behaviors/drink_potion.json" }, "minecraft:behavior.drop_item_for": { "$ref": "./behaviors/drop_item_for.json" }, "minecraft:behavior.eat_block": { "$ref": "./behaviors/eat_block.json" },