@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
320 lines • 11.5 kB
JSON
{
"fields": [
{
"id": "attack_types",
"title": "Attack Types",
"description": "Defines the entity types this entity will attack.",
"dataType": 2
},
{
"id": "attack_once",
"title": "Attack Once",
"description": "Allows the entity to use this attack behavior, only once EVER.",
"defaultValue": false,
"dataType": 1
},
{
"id": "can_spread_on_fire",
"title": "Can Spread On Fire",
"description": "If the entity is on fire, this allows the entity's target to catch on fire after being hit.",
"defaultValue": false,
"dataType": 1
},
{
"id": "cooldown_time",
"title": "Cooldown Time",
"description": "Cooldown time (in seconds) between attacks.",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/entities/axe_turret.behavior.json": [
{
"path": "/minecraft:entity/component_groups/mikeamm_gwve:active/minecraft:behavior.melee_attack/",
"content": 0.1
}
]
}
},
{
"id": "inner_boundary_time_increase",
"title": "Inner Boundary Time Increase",
"description": "Time (in seconds) to add to attack path recalculation when the target is beyond the \"path_inner_boundary\".",
"defaultValue": 0.25,
"dataType": 3
},
{
"id": "max_path_time",
"title": "Max Path Time",
"description": "Maximum base time (in seconds) to recalculate new attack path to target (before increases applied).",
"defaultValue": 0.55,
"dataType": 3
},
{
"id": "melee_fov",
"title": "Melee Fov",
"description": "Field of view (in degrees) when using the sensing component to detect an attack target.",
"defaultValue": 90,
"dataType": 3,
"samples": {
"/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/entities/axe_turret.behavior.json": [
{
"path": "/minecraft:entity/component_groups/mikeamm_gwve:active/minecraft:behavior.melee_attack/",
"content": 360
}
]
}
},
{
"id": "min_path_time",
"title": "Min Path Time",
"description": "Minimum base time (in seconds) to recalculate new attack path to target (before increases applied).",
"defaultValue": 0.2,
"dataType": 3
},
{
"id": "on_attack",
"title": "On Attack",
"description": "Defines the event to trigger when this entity successfully attacks.",
"dataType": 22
},
{
"id": "on_kill",
"title": "On Kill",
"description": "Defines the event to trigger when this entity kills the target.",
"dataType": 22
},
{
"id": "outer_boundary_time_increase",
"title": "Outer Boundary Time Increase",
"description": "Time (in seconds) to add to attack path recalculation when the target is beyond the \"path_outer_boundary\".",
"defaultValue": 0.5,
"dataType": 3
},
{
"id": "path_fail_time_increase",
"title": "Path Fail Time Increase",
"description": "Time (in seconds) to add to attack path recalculation when this entity cannot move along the current path.",
"defaultValue": 0.75,
"dataType": 3
},
{
"id": "path_inner_boundary",
"title": "Path Inner Boundary",
"description": "Distance at which to increase attack path recalculation by \"inner_boundary_tick_increase\".",
"defaultValue": 16,
"dataType": 3
},
{
"id": "path_outer_boundary",
"title": "Path Outer Boundary",
"description": "Distance at which to increase attack path recalculation by \"outer_boundary_tick_increase\".",
"defaultValue": 32,
"dataType": 3
},
{
"id": "random_stop_interval",
"title": "Random Stop Interval",
"description": "This entity will have a 1 in N chance to stop it's current attack, where N = \"random_stop_interval\".",
"defaultValue": 0,
"dataType": 0
},
{
"id": "reach_multiplier",
"title": "Reach Multiplier",
"description": "Used with the base size of the entity to determine minimum target-distance before trying to deal attack damage.",
"defaultValue": 2,
"dataType": 3
},
{
"id": "require_complete_path",
"title": "Require Complete Path",
"description": "Toggles (on/off) the need to have a full path from the entity to the target when using this melee attack behavior.",
"defaultValue": false,
"dataType": 1
},
{
"id": "speed_multiplier",
"title": "Speed Multiplier",
"description": "This multiplier modifies the attacking entity's speed when moving toward the target.",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/creeper.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.melee_attack/",
"content": 1.25
}
],
"/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/entities/axe_turret.behavior.json": [
{
"path": "/minecraft:entity/component_groups/mikeamm_gwve:active/minecraft:behavior.melee_attack/",
"content": 5
}
]
}
},
{
"id": "track_target",
"title": "Track Target",
"description": "Allows the entity to track the attack target, even if the entity has no sensing.",
"defaultValue": false,
"dataType": 1,
"samples": {
"/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/entities/axe_turret.behavior.json": [
{
"path": "/minecraft:entity/component_groups/mikeamm_gwve:active/minecraft:behavior.melee_attack/",
"content": true
}
]
}
},
{
"id": "x_max_rotation",
"title": "X Max Rotation",
"description": "Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target.",
"defaultValue": 30,
"dataType": 3,
"samples": {
"/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/entities/axe_turret.behavior.json": [
{
"path": "/minecraft:entity/component_groups/mikeamm_gwve:active/minecraft:behavior.melee_attack/",
"content": 360
}
]
}
},
{
"id": "y_max_head_rotation",
"title": "Y Max Head Rotation",
"description": "Maximum rotation (in degrees), on the Y-axis, this entity can rotate its head while trying to look at the target.",
"defaultValue": 30,
"dataType": 3,
"samples": {
"/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/entities/axe_turret.behavior.json": [
{
"path": "/minecraft:entity/component_groups/mikeamm_gwve:active/minecraft:behavior.melee_attack/",
"content": 360
}
]
}
},
{
"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/creeper.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.melee_attack/",
"content": 4
}
],
"/samples/addon_starter/2_entities/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:sheep_sheared/minecraft:behavior.melee_attack/",
"content": 2
}
],
"/samples/addon_starter/complete/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:sheep_sheared/minecraft:behavior.melee_attack/",
"content": 2
}
],
"/samples/behavior_pack_sample/entities/cow.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.melee_attack/",
"content": 3
}
],
"/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/entities/axe_turret.behavior.json": [
{
"path": "/minecraft:entity/component_groups/mikeamm_gwve:active/minecraft:behavior.melee_attack/",
"content": 1
}
],
"/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/entities/gray_zombie_leader.behavior.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.melee_attack/",
"content": 3
}
]
}
}
],
"requires": [
{
"id": "targeting_entity_component",
"type": "targeting_entity_component"
},
{
"id": "minecraft:attack",
"type": "entity_component"
}
],
"description": "Allows an entity to deal damage through a melee attack.",
"title": "Melee Attack Behavior",
"samples": {
"/vanilla/behavior_pack/entities/creeper.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.melee_attack/",
"content": {
"priority": 4,
"speed_multiplier": 1.25,
"track_target": false,
"reach_multiplier": 0
}
}
],
"/samples/addon_starter/2_entities/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:sheep_sheared/minecraft:behavior.melee_attack/",
"content": {
"priority": 2
}
}
],
"/samples/addon_starter/complete/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [
{
"path": "/minecraft:entity/component_groups/minecraft:sheep_sheared/minecraft:behavior.melee_attack/",
"content": {
"priority": 2
}
}
],
"/samples/behavior_pack_sample/entities/cow.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.melee_attack/",
"content": {
"priority": 3
}
}
],
"/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/entities/axe_turret.behavior.json": [
{
"path": "/minecraft:entity/component_groups/mikeamm_gwve:active/minecraft:behavior.melee_attack/",
"content": {
"priority": 1,
"melee_fov": 360,
"speed_multiplier": 5,
"cooldown_time": 0.1,
"track_target": true,
"y_max_head_rotation": 360,
"x_max_rotation": 360,
"attack_once": false
}
}
],
"/samples/casual_creator/gray_wave/behavior_packs/mikeamm_gwve/entities/gray_zombie_leader.behavior.json": [
{
"path": "/minecraft:entity/components/minecraft:behavior.melee_attack/",
"content": {
"priority": 3
}
}
]
},
"id": "minecraft:behavior.melee_attack"
}