@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
229 lines • 7.52 kB
JSON
{
"fields": [
{
"id": "entity_types",
"title": "Entity Types",
"description": "List of entities this mob will share items with",
"dataType": 15,
"subForm": {
"description": "List of entities this mob will share items with",
"fields": [
{
"id": "cooldown",
"title": "Cooldown",
"description": "The amount of time in seconds that the mob has to wait before selecting a target of the same type again",
"defaultValue": 0,
"dataType": 3
},
{
"id": "filters",
"title": "Filters",
"description": "Conditions that make this entry in the list valid",
"dataType": 20
},
{
"id": "max_dist",
"title": "Max Dist",
"description": "Maximum distance this mob can be away to be a valid choice",
"defaultValue": 16,
"dataType": 3
},
{
"id": "must_see",
"title": "Must See",
"description": "If true, the mob has to be visible to be a valid choice",
"defaultValue": false,
"dataType": 1
},
{
"id": "must_see_forget_duration",
"title": "Must See Forget Duration",
"description": "Determines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more",
"defaultValue": 3,
"dataType": 3
},
{
"id": "reevaluate_description",
"title": "Reevaluate Description",
"description": "If true, the mob will stop being targeted if it stops meeting any conditions.",
"defaultValue": false,
"dataType": 1
},
{
"id": "sprint_speed_multiplier",
"title": "Sprint Speed Multiplier",
"description": "Multiplier for the running speed. A value of 1.0 means the speed is unchanged",
"defaultValue": 1,
"dataType": 3
},
{
"id": "walk_speed_multiplier",
"title": "Walk Speed Multiplier",
"description": "Multiplier for the walking speed. A value of 1.0 means the speed is unchanged",
"defaultValue": 1,
"dataType": 3
}
]
},
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.share_items/",
"content": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "villager"
}
}
]
}
],
"/vanilla/behavior_pack/entities/villager.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.share_items/",
"content": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "villager"
}
}
]
}
]
}
},
{
"id": "goal_radius",
"title": "Goal Radius",
"description": "Distance in blocks within the mob considers it has reached the goal. This is the \"wiggle room\" to stop the AI from bouncing back and forth trying to reach a specific spot",
"defaultValue": 0.5,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.share_items/",
"content": 2
}
],
"/vanilla/behavior_pack/entities/villager.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.share_items/",
"content": 2
}
]
}
},
{
"id": "max_dist",
"title": "Max Dist",
"description": "Maximum distance in blocks this mob will look for entities to share items with",
"defaultValue": 0,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.share_items/",
"content": 3
}
],
"/vanilla/behavior_pack/entities/villager.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.share_items/",
"content": 3
}
]
}
},
{
"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/components/minecraft:behavior.share_items/",
"content": 0.5
}
],
"/vanilla/behavior_pack/entities/villager.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.share_items/",
"content": 0.5
}
]
}
},
{
"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/components/minecraft:behavior.share_items/",
"content": 10
}
],
"/vanilla/behavior_pack/entities/villager.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.share_items/",
"content": 8
}
]
}
}
],
"description": "Allows the mob to give items it has to others.",
"title": "Share Items Behavior",
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.share_items/",
"content": {
"priority": 10,
"max_dist": 3,
"goal_radius": 2,
"speed_multiplier": 0.5,
"entity_types": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "villager"
}
}
]
}
}
],
"/vanilla/behavior_pack/entities/villager.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.share_items/",
"content": {
"priority": 8,
"max_dist": 3,
"goal_radius": 2,
"speed_multiplier": 0.5,
"entity_types": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "villager"
}
}
]
}
}
]
},
"id": "minecraft:behavior.share_items"
}