@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
172 lines • 5.44 kB
JSON
{
"fields": [
{
"id": "chance_to_start",
"title": "Chance To Start",
"description": "Percent chance that the mob will start this goal, from 0 to 1.",
"defaultValue": 0,
"dataType": 3
},
{
"id": "follow_distance",
"title": "Follow Distance",
"description": "The distance (in blocks) that the mob tries to be in range of the friend it's following.",
"defaultValue": 2,
"dataType": 0
},
{
"id": "friend_search_area",
"title": "Friend Search Area",
"description": "The dimensions of the AABB used to search for a potential friend to play with.",
"defaultValue": [
6,
3,
6
],
"dataType": 11
},
{
"id": "friend_types",
"title": "Friend Types",
"description": "The entity type(s) to consider when searching for a potential friend to play with.",
"dataType": 20,
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/component_groups/play_schedule_villager/minecraft:behavior.play/",
"content": [
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "villager"
},
{
"test": "is_baby",
"subject": "other",
"operator": "==",
"value": true
}
]
}
}
]
}
]
}
},
{
"id": "max_play_duration_seconds",
"title": "Max Play Duration Seconds",
"description": "The max amount of seconds that the mob will play for before exiting the Goal.",
"defaultValue": 50,
"dataType": 3
},
{
"id": "random_pos_search_height",
"title": "Random Pos Search Height",
"description": "The height (in blocks) that the mob will search within to find a random position position to move to. Must be at least 1.",
"defaultValue": 3,
"dataType": 0
},
{
"id": "random_pos_search_range",
"title": "Random Pos Search Range",
"description": "The distance (in blocks) on ground that the mob will search within to find a random position to move to. Must be at least 1.",
"defaultValue": 16,
"dataType": 0
},
{
"id": "speed_multiplier",
"title": "Speed Multiplier",
"description": "Movement speed multiplier of the mob when using this AI Goal.",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/component_groups/play_schedule_villager/minecraft:behavior.play/",
"content": 0.6
}
],
"/vanilla/behavior_pack/entities/villager.json": [
{
"path": "/minecraft:entity/component_groups/baby/minecraft:behavior.play/",
"content": 0.32
}
]
}
},
{
"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/villager_v2.json": [
{
"path": "/minecraft:entity/component_groups/play_schedule_villager/minecraft:behavior.play/",
"content": 8
}
],
"/vanilla/behavior_pack/entities/villager.json": [
{
"path": "/minecraft:entity/component_groups/baby/minecraft:behavior.play/",
"content": 8
}
]
}
}
],
"restrictions": [
{
"id": "minecraft:villager",
"type": "entity_type"
}
],
"description": "Allows the mob to play with other mobs by chasing each other and moving around randomly.",
"title": "Play Behavior",
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/component_groups/play_schedule_villager/minecraft:behavior.play/",
"content": {
"priority": 8,
"speed_multiplier": 0.6,
"friend_types": [
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "villager"
},
{
"test": "is_baby",
"subject": "other",
"operator": "==",
"value": true
}
]
}
}
]
}
}
],
"/vanilla/behavior_pack/entities/villager.json": [
{
"path": "/minecraft:entity/component_groups/baby/minecraft:behavior.play/",
"content": {
"priority": 8,
"speed_multiplier": 0.32
}
}
]
},
"id": "minecraft:behavior.play"
}