Added drink milk

This commit is contained in:
DaanV2
2022-07-20 21:00:35 +02:00
parent 6bafd9c899
commit 155ff2bcef
2 changed files with 27 additions and 0 deletions

View File

@@ -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
}
]
}

View File

@@ -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" },