@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
107 lines • 3.28 kB
JSON
{
"fields": [
{
"id": "event",
"title": "Event",
"description": "The event to run when the conditions for this trigger are met.",
"dataType": 22,
"samples": {
"/vanilla/behavior_pack/entities/blaze.json": [
{
"path": "/minecraft:entity/components/minecraft:on_hurt/",
"content": "minecraft:on_hurt_event"
}
],
"/vanilla/behavior_pack/entities/ender_crystal.json": [
{
"path": "/minecraft:entity/components/minecraft:on_hurt/",
"content": "minecraft:crystal_explode"
}
],
"/vanilla/behavior_pack/entities/pillager.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:illager_squad_captain/minecraft:on_hurt/",
"content": "minecraft:ranged_mode"
},
{
"path": "/minecraft:entity/component_groups/minecraft:patrol_captain/minecraft:on_hurt/",
"content": "minecraft:ranged_mode"
}
]
}
},
{
"id": "filters",
"title": "Filters",
"description": "The list of conditions for this trigger to execute.",
"dataType": 20
},
{
"id": "target",
"title": "Target",
"description": "The target of the event.",
"defaultValue": "self",
"dataType": 2,
"samples": {
"/vanilla/behavior_pack/entities/blaze.json": [
{
"path": "/minecraft:entity/components/minecraft:on_hurt/",
"content": "self"
}
],
"/vanilla/behavior_pack/entities/ender_crystal.json": [
{
"path": "/minecraft:entity/components/minecraft:on_hurt/",
"content": "self"
}
]
}
}
],
"description": "Adds a trigger to call when this entity takes damage.",
"title": "On Hurt",
"samples": {
"/vanilla/behavior_pack/entities/blaze.json": [
{
"path": "/minecraft:entity/components/minecraft:on_hurt/",
"content": {
"event": "minecraft:on_hurt_event",
"target": "self"
}
}
],
"/vanilla/behavior_pack/entities/ender_crystal.json": [
{
"path": "/minecraft:entity/components/minecraft:on_hurt/",
"content": {
"event": "minecraft:crystal_explode",
"target": "self"
}
}
],
"/vanilla/behavior_pack/entities/pillager.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:illager_squad_captain/minecraft:on_hurt/",
"content": {
"event": "minecraft:ranged_mode",
"target": "self"
}
},
{
"path": "/minecraft:entity/component_groups/minecraft:patrol_captain/minecraft:on_hurt/",
"content": {
"event": "minecraft:ranged_mode",
"target": "self"
}
},
{
"path": "/minecraft:entity/component_groups/minecraft:patrol_follower/minecraft:on_hurt/",
"content": {
"event": "minecraft:ranged_mode",
"target": "self"
}
}
]
},
"id": "minecraft:on_hurt"
}