@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
164 lines • 4.97 kB
JSON
{
"fields": [
{
"id": "apply_regeneration",
"title": "Apply Regeneration",
"description": "Whether the mob will receive the regeneration effect while playing dead.",
"defaultValue": false,
"dataType": 1,
"samples": {
"/vanilla/behavior_pack/entities/axolotl.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.play_dead/",
"content": true
}
]
}
},
{
"id": "damage_sources",
"title": "Damage Sources",
"description": "The list of Entity Damage Sources that will cause this mob to play dead.",
"defaultValue": "all",
"dataType": 17,
"samples": {
"/vanilla/behavior_pack/entities/axolotl.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.play_dead/",
"content": [
"contact",
"entity_attack",
"entity_explosion",
"magic",
"projectile",
"thorns",
"wither"
]
}
]
}
},
{
"id": "duration",
"title": "Duration",
"description": "The amount of time the mob will remain playing dead (in seconds).",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/axolotl.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.play_dead/",
"content": 10
}
]
}
},
{
"id": "filters",
"title": "Filters",
"description": "The list of other triggers that are required for the mob to activate play dead",
"dataType": 20,
"samples": {
"/vanilla/behavior_pack/entities/axolotl.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.play_dead/",
"content": {
"test": "in_water",
"operator": "==",
"value": true
}
}
]
}
},
{
"id": "force_below_health",
"title": "Force Below Health",
"description": "The amount of health at which damage will cause the mob to play dead.",
"defaultValue": 0,
"dataType": 0,
"samples": {
"/vanilla/behavior_pack/entities/axolotl.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.play_dead/",
"content": 8
}
]
}
},
{
"id": "random_damage_range",
"title": "Random Damage Range",
"description": "The range of damage that may cause the goal to start depending on randomness. Damage taken below the min will never cause the goal to start. Damage taken above the max will always cause the goal to start.",
"dataType": 18,
"samples": {
"/vanilla/behavior_pack/entities/axolotl.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.play_dead/",
"content": [
0,
2
]
}
]
}
},
{
"id": "random_start_chance",
"title": "Random Start Chance",
"description": "The likelihood of this goal starting upon taking damage.",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/axolotl.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.play_dead/",
"content": 0.33
}
]
}
},
{
"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
}
],
"description": "Allows this entity to pretend to be dead to avoid being targeted by attackers.",
"title": "Play Dead Behavior",
"samples": {
"/vanilla/behavior_pack/entities/axolotl.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.play_dead/",
"content": {
"priority": 0,
"duration": 10,
"force_below_health": 8,
"random_start_chance": 0.33,
"random_damage_range": [
0,
2
],
"damage_sources": [
"contact",
"entity_attack",
"entity_explosion",
"magic",
"projectile",
"thorns",
"wither"
],
"apply_regeneration": true,
"filters": {
"test": "in_water",
"operator": "==",
"value": true
}
}
}
]
},
"id": "minecraft:behavior.play_dead"
}