mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2025-02-07 11:19:42 +00:00
183 lines
4.8 KiB
JSON
183 lines
4.8 KiB
JSON
{
|
|
"format_version": "1.21.40",
|
|
"minecraft:entity": {
|
|
"description": {
|
|
"identifier": "minecraft:arrow",
|
|
"is_spawnable": false,
|
|
"is_summonable": true
|
|
},
|
|
|
|
"component_groups": {
|
|
"minecraft:hard_arrow": {
|
|
"minecraft:projectile": {
|
|
"on_hit": {
|
|
"impact_damage": {
|
|
"damage": [ 1, 5 ],
|
|
"knockback": true,
|
|
"semi_random_diff_damage": false,
|
|
"destroy_on_hit": true
|
|
},
|
|
"stick_in_ground": {
|
|
"shake_time": 0.35
|
|
},
|
|
"arrow_effect": {
|
|
"apply_effect_to_blocking_targets": false
|
|
}
|
|
},
|
|
"hit_sound": "bow.hit",
|
|
"power": 1.6,
|
|
"gravity": 0.05,
|
|
"uncertainty_base": 16,
|
|
"uncertainty_multiplier": 4,
|
|
"anchor": 1,
|
|
"should_bounce": true,
|
|
"offset": [ 0, -0.1, 0 ]
|
|
}
|
|
},
|
|
"minecraft:player_arrow": {
|
|
"minecraft:projectile": {
|
|
"on_hit": {
|
|
"impact_damage": {
|
|
"damage": 1,
|
|
"knockback": true,
|
|
"semi_random_diff_damage": true,
|
|
"destroy_on_hit": true,
|
|
"max_critical_damage": 10,
|
|
"min_critical_damage": 9,
|
|
"power_multiplier": 0.97
|
|
},
|
|
"stick_in_ground": {
|
|
"shake_time": 0.35
|
|
},
|
|
"arrow_effect": {
|
|
"apply_effect_to_blocking_targets": false
|
|
}
|
|
},
|
|
"hit_sound": "bow.hit",
|
|
"power": 5.0,
|
|
"gravity": 0.05,
|
|
"uncertainty_base": 1,
|
|
"uncertainty_multiplier": 0,
|
|
"anchor": 1,
|
|
"should_bounce": true,
|
|
"offset": [ 0, -0.1, 0 ]
|
|
}
|
|
},
|
|
"minecraft:pillager_arrow": {
|
|
"minecraft:projectile": {
|
|
"on_hit": {
|
|
"impact_damage": {
|
|
"damage": [ 3, 6 ],
|
|
"knockback": true,
|
|
"semi_random_diff_damage": false,
|
|
"destroy_on_hit": true
|
|
},
|
|
"stick_in_ground": {
|
|
"shake_time": 0.35
|
|
},
|
|
"arrow_effect": {
|
|
"apply_effect_to_blocking_targets": false
|
|
}
|
|
},
|
|
"hit_sound": "bow.hit",
|
|
"power": 1.6,
|
|
"gravity": 0.05,
|
|
"uncertainty_base": 16,
|
|
"uncertainty_multiplier": 4,
|
|
"anchor": 1,
|
|
"should_bounce": true,
|
|
"offset": [ 0, -0.1, 0 ]
|
|
}
|
|
}
|
|
},
|
|
|
|
"components": {
|
|
"minecraft:collision_box": {
|
|
"width": 0.25,
|
|
"height": 0.25
|
|
},
|
|
"minecraft:hurt_on_condition": {
|
|
"damage_conditions": [
|
|
{
|
|
"filters": {
|
|
"test": "in_lava", "subject": "self", "operator": "==", "value": true
|
|
},
|
|
"cause": "lava",
|
|
"damage_per_tick": 4
|
|
}
|
|
]
|
|
},
|
|
"minecraft:projectile": {
|
|
"on_hit": {
|
|
"impact_damage": {
|
|
"damage": [ 1, 4 ],
|
|
"knockback": true,
|
|
"semi_random_diff_damage": false,
|
|
"destroy_on_hit": true
|
|
},
|
|
"stick_in_ground": {
|
|
"shake_time": 0.35
|
|
},
|
|
"arrow_effect": {
|
|
"apply_effect_to_blocking_targets": false
|
|
}
|
|
},
|
|
"hit_sound": "bow.hit",
|
|
"power": 1.6,
|
|
"gravity": 0.05,
|
|
"uncertainty_base": 16,
|
|
"uncertainty_multiplier": 4,
|
|
"anchor": 1,
|
|
"should_bounce": true,
|
|
"offset": [ 0, -0.1, 0 ]
|
|
},
|
|
"minecraft:physics": {
|
|
},
|
|
"minecraft:dimension_bound": {
|
|
},
|
|
"minecraft:pushable": {
|
|
"is_pushable": false,
|
|
"is_pushable_by_piston": true
|
|
},
|
|
"minecraft:conditional_bandwidth_optimization": {
|
|
"default_values": {
|
|
"max_optimized_distance": 80.0,
|
|
"max_dropped_ticks": 7,
|
|
"use_motion_prediction_hints": true
|
|
}
|
|
}
|
|
},
|
|
|
|
"events": {
|
|
"minecraft:entity_spawned": {
|
|
"sequence": [
|
|
{
|
|
"filters": {
|
|
"test": "is_difficulty", "value": "hard"
|
|
},
|
|
"add": {
|
|
"component_groups": [ "minecraft:hard_arrow" ]
|
|
}
|
|
},
|
|
{
|
|
"filters": {
|
|
"test": "is_family", "subject": "other", "value": "player"
|
|
},
|
|
"add": {
|
|
"component_groups": [ "minecraft:player_arrow" ]
|
|
}
|
|
},
|
|
{
|
|
"filters": {
|
|
"test": "is_family", "subject": "other", "value": "pillager"
|
|
},
|
|
"add": {
|
|
"component_groups": [ "minecraft:pillager_arrow" ]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|