@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
243 lines • 8.12 kB
JSON
{
"fields": [
{
"id": "eat_and_replace_block_pairs",
"title": "Eat And Replace Block Pairs",
"description": "A collection of pairs of blocks; the first (\"eat_block\")is the block the entity should eat, the second (\"replace_block\") is the block that should replace the eaten block.",
"dataType": 17,
"samples": {
"/vanilla/behavior_pack/entities/sheep.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": [
{
"eat_block": "grass",
"replace_block": "dirt"
},
{
"eat_block": "tallgrass",
"replace_block": "air"
},
{
"eat_block": "short_dry_grass",
"replace_block": "air"
},
{
"eat_block": "tall_dry_grass",
"replace_block": "air"
}
]
}
],
"/samples/addon_starter/1_hello_world/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": [
{
"eat_block": "melon_block",
"replace_block": "air"
}
]
}
],
"/samples/addon_starter/2_entities/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": [
{
"eat_block": "melon_block",
"replace_block": "air"
}
]
}
]
}
},
{
"id": "on_eat",
"title": "On Eat",
"description": "The event to trigger when the block eating animation has completed.",
"dataType": 22,
"samples": {
"/vanilla/behavior_pack/entities/sheep.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": {
"event": "minecraft:on_eat_block",
"target": "self"
}
}
],
"/samples/addon_starter/1_hello_world/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": {
"event": "minecraft:on_eat_block",
"target": "self"
}
}
]
}
},
{
"id": "success_chance",
"title": "Success Chance",
"description": "A molang expression defining the success chance the entity has to consume a block.",
"defaultValue": "0.02",
"dataType": 2,
"samples": {
"/vanilla/behavior_pack/entities/sheep.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": "query.is_baby ? 0.02 : 0.001"
}
],
"/samples/addon_starter/1_hello_world/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": "query.is_baby ? 0.02 : 0.001"
}
]
}
},
{
"id": "time_until_eat",
"title": "Time Until Eat",
"description": "The amount of time (in seconds) it takes for the block to be eaten upon a successful eat attempt.",
"defaultValue": 1.8,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/sheep.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": 1.8
}
],
"/samples/addon_starter/1_hello_world/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": 1.8
}
]
}
},
{
"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/sheep.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": 6
}
],
"/samples/addon_starter/1_hello_world/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": 6
}
]
}
}
],
"description": "Allows the entity to consume a block, replace the eaten block with another block, and trigger an event as a result.",
"title": "Eat Block Behavior",
"samples": {
"/vanilla/behavior_pack/entities/sheep.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": {
"priority": 6,
"success_chance": "query.is_baby ? 0.02 : 0.001",
"time_until_eat": 1.8,
"eat_and_replace_block_pairs": [
{
"eat_block": "grass",
"replace_block": "dirt"
},
{
"eat_block": "tallgrass",
"replace_block": "air"
},
{
"eat_block": "short_dry_grass",
"replace_block": "air"
},
{
"eat_block": "tall_dry_grass",
"replace_block": "air"
}
],
"on_eat": {
"event": "minecraft:on_eat_block",
"target": "self"
}
}
}
],
"/samples/addon_starter/1_hello_world/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": {
"priority": 6,
"success_chance": "query.is_baby ? 0.02 : 0.001",
"time_until_eat": 1.8,
"eat_and_replace_block_pairs": [
{
"eat_block": "melon_block",
"replace_block": "air"
}
],
"on_eat": {
"event": "minecraft:on_eat_block",
"target": "self"
}
}
}
],
"/samples/addon_starter/2_entities/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": {
"priority": 6,
"success_chance": "query.is_baby ? 0.02 : 0.001",
"time_until_eat": 1.8,
"eat_and_replace_block_pairs": [
{
"eat_block": "melon_block",
"replace_block": "air"
}
],
"on_eat": {
"event": "minecraft:on_eat_block",
"target": "self"
}
}
}
],
"/samples/addon_starter/complete/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.eat_block/",
"content": {
"priority": 6,
"success_chance": "query.is_baby ? 0.02 : 0.001",
"time_until_eat": 1.8,
"eat_and_replace_block_pairs": [
{
"eat_block": "melon_block",
"replace_block": "air"
}
],
"on_eat": {
"event": "minecraft:on_eat_block",
"target": "self"
}
}
}
]
},
"id": "minecraft:behavior.eat_block"
}