@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
88 lines • 2.56 kB
JSON
{
"fields": [
{
"id": "cooldown_seconds",
"title": "Cooldown Seconds",
"description": "Time (in seconds) that the goal is on cooldown before it can be used again.",
"defaultValue": 5,
"dataType": 3
},
{
"id": "filters",
"title": "Filters",
"description": "Conditions that need to be met for the behavior to start.",
"dataType": 20,
"samples": {
"/vanilla/behavior_pack/entities/wandering_trader.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.drink_milk/",
"content": {
"all_of": [
{
"test": "is_daytime",
"value": true
},
{
"test": "is_visible",
"subject": "self",
"value": false
},
{
"test": "is_avoiding_mobs",
"subject": "self",
"value": false
}
]
}
}
]
}
},
{
"id": "priority",
"title": "Priority",
"hideSamples": true,
"description": "As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.",
"dataType": 0,
"samples": {
"/vanilla/behavior_pack/entities/wandering_trader.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.drink_milk/",
"content": 5
}
]
}
}
],
"description": "Allows the mob to drink milk based on specified environment conditions.",
"title": "Drink Milk Behavior",
"samples": {
"/vanilla/behavior_pack/entities/wandering_trader.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.drink_milk/",
"content": {
"priority": 5,
"filters": {
"all_of": [
{
"test": "is_daytime",
"value": true
},
{
"test": "is_visible",
"subject": "self",
"value": false
},
{
"test": "is_avoiding_mobs",
"subject": "self",
"value": false
}
]
}
}
}
]
},
"id": "minecraft:behavior.drink_milk"
}