@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
408 lines • 13.9 kB
JSON
{
"fields": [
{
"id": "sound",
"title": "Sound",
"description": "Sound to play when the sneeze occurs.",
"dataType": 2,
"lookupId": "soundDefinition",
"samples": {
"/vanilla/behavior_pack/entities/panda.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:panda_baby/minecraft:behavior.sneeze/",
"content": "sneeze"
},
{
"path": "/minecraft:entity/component_groups/minecraft:panda_sneezing/minecraft:behavior.sneeze/",
"content": "sneeze"
}
]
}
},
{
"id": "cooldown_time",
"title": "Cooldown Time",
"description": "Time in seconds the mob has to wait before using the goal again",
"defaultValue": 0,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/panda.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:panda_baby/minecraft:behavior.sneeze/",
"content": 1
},
{
"path": "/minecraft:entity/component_groups/minecraft:panda_sneezing/minecraft:behavior.sneeze/",
"content": 1
}
]
}
},
{
"id": "drop_item_chance",
"title": "Drop Item Chance",
"description": "The probability that the mob will drop an item when it sneezes.",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/panda.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:panda_baby/minecraft:behavior.sneeze/",
"content": 0.001
},
{
"path": "/minecraft:entity/component_groups/minecraft:panda_sneezing/minecraft:behavior.sneeze/",
"content": 0.001
}
]
}
},
{
"id": "entity_types",
"title": "Entity Types",
"description": "List of entity types this mob will startle (cause to jump) when it sneezes.",
"dataType": 15,
"subForm": {
"description": "List of entity types this mob will startle (cause to jump) when it sneezes.",
"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/panda.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:panda_baby/minecraft:behavior.sneeze/",
"content": [
{
"filters": {
"all_of": [
{
"test": "has_component",
"subject": "other",
"operator": "!=",
"value": "minecraft:is_baby"
},
{
"test": "is_family",
"subject": "other",
"value": "panda"
},
{
"test": "in_water",
"subject": "other",
"operator": "!=",
"value": true
},
{
"test": "on_ground",
"operator": "==",
"value": true
}
]
},
"max_dist": 10
}
]
},
{
"path": "/minecraft:entity/component_groups/minecraft:panda_sneezing/minecraft:behavior.sneeze/",
"content": [
{
"filters": {
"all_of": [
{
"test": "has_component",
"subject": "other",
"operator": "!=",
"value": "minecraft:is_baby"
},
{
"test": "is_family",
"subject": "other",
"value": "panda"
},
{
"test": "in_water",
"subject": "other",
"operator": "!=",
"value": true
},
{
"test": "on_ground",
"operator": "==",
"value": true
}
]
},
"max_dist": 10
}
]
}
]
}
},
{
"id": "loot_table",
"title": "Loot Table",
"description": "Loot table to select dropped items from.",
"dataType": 2,
"samples": {
"/vanilla/behavior_pack/entities/panda.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:panda_baby/minecraft:behavior.sneeze/",
"content": "loot_tables/entities/panda_sneeze.json"
},
{
"path": "/minecraft:entity/component_groups/minecraft:panda_sneezing/minecraft:behavior.sneeze/",
"content": "loot_tables/entities/panda_sneeze.json"
}
]
}
},
{
"id": "prepare_sound",
"title": "Prepare Sound",
"description": "Sound to play when the sneeze is about to happen.",
"dataType": 2,
"samples": {
"/vanilla/behavior_pack/entities/panda.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:panda_baby/minecraft:behavior.sneeze/",
"content": "presneeze"
},
{
"path": "/minecraft:entity/component_groups/minecraft:panda_sneezing/minecraft:behavior.sneeze/",
"content": "presneeze"
}
]
}
},
{
"id": "prepare_time",
"title": "Prepare Time",
"description": "The time in seconds that the mob takes to prepare to sneeze (while the prepare_sound is playing).",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/panda.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:panda_baby/minecraft:behavior.sneeze/",
"content": 1
},
{
"path": "/minecraft:entity/component_groups/minecraft:panda_sneezing/minecraft:behavior.sneeze/",
"content": 1
}
]
}
},
{
"id": "probability",
"title": "Probability",
"description": "The probability of sneezing. A value of 1.00 is 100%",
"defaultValue": 0.02,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/panda.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:panda_baby/minecraft:behavior.sneeze/",
"content": 0.0001666
},
{
"path": "/minecraft:entity/component_groups/minecraft:panda_sneezing/minecraft:behavior.sneeze/",
"content": 0.002
}
]
}
},
{
"id": "within_radius",
"title": "Within Radius",
"description": "Distance in blocks that mobs will be startled.",
"defaultValue": 0,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/panda.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:panda_baby/minecraft:behavior.sneeze/",
"content": 10
},
{
"path": "/minecraft:entity/component_groups/minecraft:panda_sneezing/minecraft:behavior.sneeze/",
"content": 10
}
]
}
},
{
"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/panda.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:panda_baby/minecraft:behavior.sneeze/",
"content": 7
},
{
"path": "/minecraft:entity/component_groups/minecraft:panda_sneezing/minecraft:behavior.sneeze/",
"content": 7
}
]
}
}
],
"description": "Allows the mob to stop and sneeze possibly startling nearby mobs and dropping an item.",
"title": "Sneeze Behavior",
"samples": {
"/vanilla/behavior_pack/entities/panda.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:panda_baby/minecraft:behavior.sneeze/",
"content": {
"priority": 7,
"probability": 0.0001666,
"cooldown_time": 1,
"within_radius": 10,
"entity_types": [
{
"filters": {
"all_of": [
{
"test": "has_component",
"subject": "other",
"operator": "!=",
"value": "minecraft:is_baby"
},
{
"test": "is_family",
"subject": "other",
"value": "panda"
},
{
"test": "in_water",
"subject": "other",
"operator": "!=",
"value": true
},
{
"test": "on_ground",
"operator": "==",
"value": true
}
]
},
"max_dist": 10
}
],
"drop_item_chance": 0.001,
"loot_table": "loot_tables/entities/panda_sneeze.json",
"prepare_sound": "presneeze",
"prepare_time": 1,
"sound": "sneeze"
}
},
{
"path": "/minecraft:entity/component_groups/minecraft:panda_sneezing/minecraft:behavior.sneeze/",
"content": {
"priority": 7,
"probability": 0.002,
"cooldown_time": 1,
"within_radius": 10,
"entity_types": [
{
"filters": {
"all_of": [
{
"test": "has_component",
"subject": "other",
"operator": "!=",
"value": "minecraft:is_baby"
},
{
"test": "is_family",
"subject": "other",
"value": "panda"
},
{
"test": "in_water",
"subject": "other",
"operator": "!=",
"value": true
},
{
"test": "on_ground",
"operator": "==",
"value": true
}
]
},
"max_dist": 10
}
],
"drop_item_chance": 0.001,
"loot_table": "loot_tables/entities/panda_sneeze.json",
"prepare_sound": "presneeze",
"prepare_time": 1,
"sound": "sneeze"
}
}
]
},
"id": "minecraft:behavior.sneeze"
}