@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
126 lines • 3.77 kB
JSON
{
"fields": [
{
"id": "eat_animation_time",
"title": "Eat Animation Time",
"description": "Sets the time in seconds the eat animation should play for.",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/frog.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_mob/",
"content": 0.3
}
]
}
},
{
"id": "eat_mob_sound",
"title": "Eat Mob Sound",
"description": "Sets the sound that should play when eating a mob.",
"dataType": 2,
"samples": {
"/vanilla/behavior_pack/entities/frog.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_mob/",
"content": "tongue"
}
]
}
},
{
"id": "loot_table",
"title": "Loot Table",
"description": "The loot table for loot to be dropped when eating a mob.",
"dataType": 2,
"samples": {
"/vanilla/behavior_pack/entities/frog.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_mob/",
"content": "loot_tables/entities/frog.json"
}
]
}
},
{
"id": "pull_in_force",
"title": "Pull In Force",
"description": "Sets the force which the mob-to-be-eaten is pulled towards the eating mob.",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/frog.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_mob/",
"content": 0.75
}
]
}
},
{
"id": "reach_mob_distance",
"title": "Reach Mob Distance",
"description": "Sets the desired distance to be reached before eating the mob.",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/frog.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_mob/",
"content": 1.75
}
]
}
},
{
"id": "run_speed",
"title": "Run Speed",
"description": "Sets the entity's speed when running toward the target.",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/frog.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_mob/",
"content": 2
}
]
}
},
{
"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/frog.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_mob/",
"content": 7
}
]
}
}
],
"description": "Allows the entity to eat a specified Mob.",
"title": "Eat Mob Behavior",
"samples": {
"/vanilla/behavior_pack/entities/frog.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_mob/",
"content": {
"priority": 7,
"run_speed": 2,
"eat_animation_time": 0.3,
"pull_in_force": 0.75,
"reach_mob_distance": 1.75,
"eat_mob_sound": "tongue",
"loot_table": "loot_tables/entities/frog.json"
}
}
]
},
"id": "minecraft:behavior.eat_mob"
}