UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

92 lines 2.94 kB
{ "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_by_player/", "content": "minecraft:on_hurt_event" } ], "/vanilla/behavior_pack/entities/pillager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:illager_squad_captain/minecraft:on_hurt_by_player/", "content": "minecraft:ranged_mode" }, { "path": "/minecraft:entity/component_groups/minecraft:patrol_captain/minecraft:on_hurt_by_player/", "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_by_player/", "content": "self" } ], "/vanilla/behavior_pack/entities/pillager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:illager_squad_captain/minecraft:on_hurt_by_player/", "content": "self" } ] } } ], "description": "Adds a trigger to call when this entity is attacked by the player.", "title": "On Hurt By Player", "samples": { "/vanilla/behavior_pack/entities/blaze.json": [ { "path": "/minecraft:entity/components/minecraft:on_hurt_by_player/", "content": { "event": "minecraft:on_hurt_event", "target": "self" } } ], "/vanilla/behavior_pack/entities/pillager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:illager_squad_captain/minecraft:on_hurt_by_player/", "content": { "event": "minecraft:ranged_mode", "target": "self" } }, { "path": "/minecraft:entity/component_groups/minecraft:patrol_captain/minecraft:on_hurt_by_player/", "content": { "event": "minecraft:ranged_mode", "target": "self" } }, { "path": "/minecraft:entity/component_groups/minecraft:patrol_follower/minecraft:on_hurt_by_player/", "content": { "event": "minecraft:ranged_mode", "target": "self" } } ] }, "id": "minecraft:on_hurt_by_player" }