Add minecraft bedrock server

This commit is contained in:
2024-09-09 13:28:08 -03:00
parent 54e5f3000c
commit 236b4b2960
4640 changed files with 688839 additions and 66 deletions

View File

@ -0,0 +1,218 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:enderman",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:enderman_calm": {
"minecraft:on_target_acquired": {
"event": "minecraft:become_angry",
"target": "self"
},
"minecraft:movement": {
"value": 0.3
}
},
"minecraft:enderman_angry": {
"minecraft:angry": {
"duration": 25,
"calm_event": {
"event": "minecraft:on_calm",
"target": "self"
}
},
"minecraft:movement": {
"value": 0.45
},
"minecraft:behavior.melee_attack": {
"priority": 2
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:experience_reward": {
"on_death": "query.last_hit_by_player ? 5 : 0"
},
"minecraft:type_family": {
"family": [ "enderman", "monster", "mob" ]
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0
},
"minecraft:nameable": {
},
"minecraft:loot": {
"table": "loot_tables/entities/enderman.json"
},
"minecraft:health": {
"value": 40,
"max": 40
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
"cause": "lava",
"damage_per_tick": 4
},
{
"filters": { "test": "in_contact_with_water", "operator": "==", "value": true },
"cause": "drowning",
"damage_per_tick": 1
}
]
},
"minecraft:attack": {
"damage": 7
},
"minecraft:follow_range": {
"value": 32,
"max": 32
},
"minecraft:collision_box": {
"width": 0.6,
"height": 2.9
},
"minecraft:teleport": {
"random_teleports": true,
"max_random_teleport_time": 30,
"random_teleport_cube": [ 32, 32, 32 ],
"target_distance": 16,
"target_teleport_chance": 0.05,
"light_teleport_chance": 0.05
},
"minecraft:lookat": {
"search_radius": 64.0,
"set_target": true,
"look_cooldown": 5.0,
"filters": {
"all_of": [
{
"subject": "other",
"test": "is_family",
"value": "player"
},
{
"test": "has_equipment",
"domain": "head",
"subject": "other",
"operator": "not",
"value": "carved_pumpkin"
}
]
}
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 5,
"must_see": true,
"attack_interval": 10,
"entity_types": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "endermite"
},
"max_dist": 64
}
]
},
"minecraft:navigation.walk": {
"can_path_over_water": false,
"avoid_water": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.random_stroll": {
"priority": 7,
"speed_multiplier": 1.0
},
"minecraft:behavior.look_at_player": {
"priority": 8,
"look_distance": 8.0,
"probability": 8.0
},
"minecraft:behavior.random_look_around": {
"priority": 8
},
"minecraft:behavior.hurt_by_target": {
"priority": 3
},
"minecraft:behavior.enderman_leave_block": {
"priority": 10
},
"minecraft:behavior.enderman_take_block": {
"priority": 11
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:conditional_bandwidth_optimization": {
"default_values": {
"max_optimized_distance": 80.0,
"max_dropped_ticks": 10,
"use_motion_prediction_hints": true
}
}
},
"events": {
"minecraft:entity_spawned": {
"remove": {
},
"add": {
"component_groups": [
"minecraft:enderman_calm"
]
}
},
"minecraft:become_angry": {
"remove": {
"component_groups": [
"minecraft:enderman_calm"
]
},
"add": {
"component_groups": [
"minecraft:enderman_angry"
]
}
},
"minecraft:on_calm": {
"remove": {
"component_groups": [
"minecraft:enderman_angry"
]
},
"add": {
"component_groups": [
"minecraft:enderman_calm"
]
}
}
}
}
}

View File

@ -0,0 +1,80 @@
{
"format_version": "1.12.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:fireball",
"is_spawnable": false,
"is_summonable": false,
"is_experimental": false
},
"component_groups": {
"minecraft:exploding": {
"minecraft:explode": {
"fuse_length": 0,
"fuse_lit": true,
"power": 1,
"causes_fire": true,
"fire_affected_by_griefing": true,
"destroy_affected_by_griefing": true
}
}
},
"components": {
"minecraft:collision_box": {
"width": 1.0,
"height": 1.0
},
"minecraft:projectile": {
"on_hit": {
"impact_damage": {
"damage": 6,
"knockback": false,
"semi_random_diff_damage": false
},
"definition_event": {
"affect_projectile": true,
"event_trigger": {
"event": "minecraft:explode",
"target": "self"
}
}
},
"power": 1.6,
"gravity": 0.00,
"inertia": 1,
"liquid_inertia": 1,
"uncertainty_base": 0,
"uncertainty_multiplier": 0,
"anchor": 1,
"offset": [ 0, -0.1, 0 ],
"reflect_on_hurt": true,
"catch_fire": true
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"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:explode": {
"add": {
"component_groups": [
"minecraft:exploding"
]
}
}
}
}
}

View File

@ -0,0 +1,520 @@
{
"format_version": "1.18.30",
"minecraft:entity": {
"description": {
"identifier": "minecraft:hoglin",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"zombification_sensor": {
"minecraft:environment_sensor": {
"triggers": {
"filters": {
"test": "in_nether",
"subject": "self",
"operator": "==",
"value": false
},
"event": "start_zombification_event"
}
}
},
"start_zombification": {
"minecraft:is_shaking": {},
"minecraft:environment_sensor": {
"triggers": {
"filters": {
"test": "in_nether",
"subject": "self",
"operator": "==",
"value": true
},
"event": "stop_zombification_event"
}
},
"minecraft:timer": {
"looping": false,
"time": 15,
"time_down_event": {
"event": "become_zombie_event"
}
}
},
"become_zombie": {
"minecraft:transformation": {
"into": "minecraft:zoglin",
"transformation_sound": "converted_to_zombified",
"keep_level": true
}
},
"angry_hoglin": {
"minecraft:angry": {
"duration": 10,
"broadcast_anger": true,
"broadcast_range": 16,
"calm_event": {
"event": "become_calm_event",
"target": "self"
},
"angry_sound": "angry",
"sound_interval": {
"range_min": 2.0,
"range_max": 5.0
}
}
},
"attack_cooldown": {
"minecraft:attack_cooldown": {
"attack_cooldown_time": [ 10.0, 15.0 ],
"attack_cooldown_complete_event": {
"event": "attack_cooldown_complete_event",
"target": "self"
}
}
},
"minecraft:hoglin_baby": {
"minecraft:type_family": {
"family": [ "hoglin", "hoglin_baby", "mob" ]
},
"minecraft:is_baby": {
},
"minecraft:movement": {
"value": 0.36
},
"minecraft:behavior.melee_attack": {
"priority": 4,
"speed_multiplier": 1,
"track_target": true,
"reach_multiplier": 1.0,
"cooldown_time": 0.75
},
"minecraft:attack": {
"damage": 1.0
},
"minecraft:scale": {
"value": 0.5
},
"minecraft:collision_box": {
"width": 0.85,
"height": 0.85
},
"minecraft:custom_hit_test": {
"hitboxes": [
{
"width": 1.0,
"height": 0.85,
"pivot": [ 0, 0.5, 0 ]
}
]
},
"minecraft:ageable": {
"duration": 1200,
"feed_items": [ "crimson_fungus" ],
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
},
"minecraft:behavior.follow_parent": {
"priority": 6,
"speed_multiplier": 1
},
"minecraft:rideable": {
"seat_count": 3,
"family_types": [
"piglin"
],
"seats": [
{
"position": [ 0.0, 0.9, -0.3 ],
"lock_rider_rotation": 0
},
{
"position": [ 0.0, 2.4, -0.3 ],
"lock_rider_rotation": 0
},
{
"position": [ 0.0, 3.9, -0.3 ],
"lock_rider_rotation": 0
}
]
},
"minecraft:behavior.panic": {
"priority": 1,
"speed_multiplier": 1
}
},
"minecraft:hoglin_adult": {
"minecraft:collision_box": {
"width": 1.4,
"height": 1.4
},
"minecraft:movement": {
"value": 0.3
},
"minecraft:custom_hit_test": {
"hitboxes": [
{
"width": 2.0,
"height": 1.75,
"pivot": [ 0, 1, 0 ]
}
]
},
"minecraft:group_size": {
"radius": 32,
"filters": {
"all_of": [
{
"test": "has_component",
"operator": "!=",
"value": "minecraft:is_baby"
},
{
"test": "is_family",
"value": "hoglin"
}
]
}
},
"minecraft:behavior.hurt_by_target": {
"priority": 2
},
"minecraft:on_target_acquired": {
"event": "become_angry_event",
"target": "self"
},
"minecraft:loot": {
"table": "loot_tables/entities/hoglin.json"
},
"minecraft:behavior.melee_attack": {
"priority": 4,
"speed_multiplier": 1,
"track_target": true,
"reach_multiplier": 2.15, // Matches Java reach which is 3.0 blocks (collision_box:width * reach_multiplier)
"cooldown_time": 2
},
"minecraft:attack": {
"damage": [ 3, 9 ]
},
"minecraft:behavior.breed": {
"priority": 3,
"speed_multiplier": 0.6
},
"minecraft:breedable": {
"require_tame": false,
"love_filters": {
"test": "has_component",
"subject": "self",
"operator": "!=",
"value": "minecraft:attack_cooldown"
},
"breeds_with": {
"mate_type": "minecraft:hoglin",
"baby_type": "minecraft:hoglin",
"breed_event": {
"event": "minecraft:entity_born",
"target": "baby"
}
},
"breed_items": [ "crimson_fungus" ]
}
},
"unhuntable_adult": {
"minecraft:type_family": {
"family": [ "hoglin", "hoglin_adult", "mob" ]
}
},
"huntable_adult": {
"minecraft:type_family": {
"family": [ "hoglin", "hoglin_adult", "hoglin_huntable", "mob" ]
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:nameable": {
},
"minecraft:health": {
"value": 40,
"max": 40
},
"minecraft:experience_reward": {
"on_bred": "Math.Random(1,7)",
"on_death": "query.last_hit_by_player ? 5 : 0"
},
"minecraft:knockback_resistance": {
"value": 0.6
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 4,
"within_radius": 16.0,
"entity_types": [
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "player"
},
{
"test": "has_component",
"subject": "self",
"operator": "!=",
"value": "minecraft:attack_cooldown"
}
]
},
"max_dist": 16
}
],
"must_see": true
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": {
"test": "in_lava",
"subject": "self",
"operator": "==",
"value": true
},
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:behavior.avoid_mob_type": {
"priority": 0,
"remove_target": true,
"entity_types": [
{
"filters": {
"all_of": [
{
"test": "has_target",
"subject": "other",
"value": true
},
{
"test": "is_family",
"subject": "other",
"value": "piglin"
}
]
},
"check_if_outnumbered": true,
"max_dist": 10,
"sprint_speed_multiplier": 1.2
}
],
"avoid_mob_sound": "retreat",
"sound_interval": {
"range_min": 2.0,
"range_max": 5.0
}
},
"minecraft:behavior.avoid_block": {
"priority": 1,
"tick_interval": 5,
"search_range": 8,
"search_height": 4,
"walk_speed_modifier": 1,
"sprint_speed_modifier": 1,
"avoid_block_sound": "retreat",
"sound_interval": {
"range_min": 2.0,
"range_max": 5.0
},
"target_selection_method": "nearest",
"target_blocks": [
"minecraft:warped_fungus",
"minecraft:portal",
"minecraft:respawn_anchor"
],
"on_escape": [
{
"event": "escaped_event",
"target": "self"
}
]
},
"minecraft:navigation.walk": {
"can_path_over_water": true,
"avoid_water": true,
"avoid_damage_blocks": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:behavior.random_stroll": {
"priority": 7,
"speed_multiplier": 0.4
},
"minecraft:behavior.random_look_around": {
"priority": 9
},
"minecraft:behavior.look_at_player": {
"priority": 8,
"look_distance": 6.0,
"probability": 0.02
},
"minecraft:balloonable": {
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:conditional_bandwidth_optimization": {
}
},
"events": {
"minecraft:entity_spawned": {
"randomize": [
{
"weight": 95,
"trigger": "spawn_adult"
},
{
"weight": 5,
"trigger": "spawn_baby"
}
]
},
"minecraft:entity_born": {
"trigger": "spawn_baby"
},
"spawn_adult": {
"add": {
"component_groups": [
"minecraft:hoglin_adult",
"huntable_adult",
"zombification_sensor"
]
}
},
"spawn_baby": {
"add": {
"component_groups": [
"minecraft:hoglin_baby",
"zombification_sensor"
]
}
},
"stop_zombification_event": {
"add": {
"component_groups": [
"zombification_sensor"
]
},
"remove": {
"component_groups": [
"start_zombification"
]
}
},
"become_zombie_event": {
"add": {
"component_groups": [
"become_zombie"
]
}
},
"start_zombification_event": {
"add": {
"component_groups": [
"start_zombification"
]
},
"remove": {
"component_groups": [
"zombification_sensor"
]
}
},
"spawn_adult_unhuntable": {
"add": {
"component_groups": [
"minecraft:hoglin_adult",
"unhuntable_adult",
"zombification_sensor"
]
}
},
"minecraft:ageable_grow_up": {
"remove": {
"component_groups": [
"minecraft:hoglin_baby"
]
},
"add": {
"component_groups": [
"minecraft:hoglin_adult",
"huntable_adult"
]
}
},
"become_angry_event": {
"add": {
"component_groups": [
"angry_hoglin"
]
}
},
"become_calm_event": {
"remove": {
"component_groups": [
"angry_hoglin"
]
}
},
"escaped_event": {
"add": {
"component_groups": [
"attack_cooldown"
]
},
"remove": {
"component_groups": [
"angry_hoglin"
]
}
},
"attack_cooldown_complete_event": {
"remove": {
"component_groups": [
"attack_cooldown"
]
}
}
}
}
}

View File

@ -0,0 +1,241 @@
{
"format_version": "1.19.30",
"minecraft:entity": {
"description": {
"identifier": "minecraft:npc",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"components": {
"minecraft:damage_sensor": {
"triggers": {
"cause": "all",
"deals_damage": false
}
},
"minecraft:type_family": {
"family": [ "npc", "mob" ]
},
"minecraft:fire_immune": true,
"minecraft:movement": {
"value": 0.5
},
"minecraft:loot": {
"table": "loot_tables/empty.json"
},
"minecraft:collision_box": {
"width": 0.6,
"height": 2.1
},
"minecraft:behavior.look_at_player": {
"priority": 0,
"look_distance": 6.0,
"probability": 0.02
},
"minecraft:persistent": {
},
"minecraft:npc": {
"npc_data": {
"portrait_offsets": {
"translate": [-7, 50, 0],
"scale": [1.75, 1.75, 1.75]
},
"picker_offsets": {
"translate": [0, 20, 0],
"scale": [1.7, 1.7, 1.7]
},
"skin_list": [
{
"variant": 0
},
{
"variant": 1
},
{
"variant": 2
},
{
"variant": 3
},
{
"variant": 4
},
{
"variant": 5
},
{
"variant": 6
},
{
"variant": 7
},
{
"variant": 8
},
{
"variant": 9
},
{
"variant": 10
},
{
"variant": 11
},
{
"variant": 12
},
{
"variant": 13
},
{
"variant": 14
},
{
"variant": 15
},
{
"variant": 16
},
{
"variant": 17
},
{
"variant": 18
},
{
"variant": 19
},
{
"variant": 25
},
{
"variant": 26
},
{
"variant": 27
},
{
"variant": 28
},
{
"variant": 29
},
{
"variant": 30
},
{
"variant": 31
},
{
"variant": 32
},
{
"variant": 33
},
{
"variant": 34
},
{
"variant": 20
},
{
"variant": 21
},
{
"variant": 22
},
{
"variant": 23
},
{
"variant": 24
},
{
"variant": 35
},
{
"variant": 36
},
{
"variant": 37
},
{
"variant": 38
},
{
"variant": 39
},
{
"variant": 40
},
{
"variant": 41
},
{
"variant": 42
},
{
"variant": 43
},
{
"variant": 44
},
{
"variant": 50
},
{
"variant": 51
},
{
"variant": 52
},
{
"variant": 53
},
{
"variant": 54
},
{
"variant": 45
},
{
"variant": 46
},
{
"variant": 47
},
{
"variant": 48
},
{
"variant": 49
},
{
"variant": 55
},
{
"variant": 56
},
{
"variant": 57
},
{
"variant": 58
},
{
"variant": 59
}
]
}
},
"minecraft:nameable": {
"always_show": false,
"allow_name_tag_renaming": false
},
"minecraft:physics": {
}
}
}
}

View File

@ -0,0 +1,502 @@
{
"format_version": "1.18.10",
"minecraft:entity": {
"description": {
"identifier": "minecraft:strider",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:strider_saddled": {
"minecraft:is_saddled": {
},
"minecraft:loot": {
"table": "loot_tables/entities/strider_saddled.json"
},
"minecraft:boostable": {
"speed_multiplier": 2.0,
"duration": 16.0,
"boost_items": [
{
"item": "warped_fungus_on_a_stick",
"damage": 1,
"replace_item": "fishing_rod"
}
]
},
"minecraft:rideable": {
"seat_count": 1,
"crouching_skip_interact": true,
"family_types": [
"player"
],
"interact_text": "action.interact.ride.strider",
"seats": {
"position": [ 0.0, 1.6, -0.2 ]
}
},
"minecraft:item_controllable": {
"control_items": "warped_fungus_on_a_stick"
},
"minecraft:behavior.controlled_by_player": {
"priority": 0,
"mount_speed_multiplier": 1.45
}
},
"minecraft:strider_unsaddled": {
"minecraft:interact": {
"interactions": [
{
"on_interact": {
"filters": {
"test": "has_equipment",
"subject": "other",
"domain": "hand",
"value": "saddle"
},
"event": "minecraft:on_saddled"
},
"use_item": true,
"play_sounds": "saddle",
"interact_text": "action.interact.saddle"
}
]
}
},
"minecraft:strider_piglin_jockey": {
"minecraft:addrider": {
"entity_type": "minecraft:zombie_pigman",
"spawn_event": "minecraft:spawn_as_strider_jockey"
},
"minecraft:rideable": {
"seat_count": 1,
"crouching_skip_interact": true,
"family_types": [
"player",
"zombie_pigman"
],
"interact_text": "action.interact.ride.strider",
"seats": {
"position": [ 0.0, 1.65, -0.2 ]
}
}
},
"minecraft:strider_parent_jockey": {
"minecraft:addrider": {
"entity_type": "minecraft:strider",
"spawn_event": "minecraft:spawn_baby_strider_jockey"
},
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"strider"
],
"seats": {
"position": [ 0.0, 1.6, 0.0 ]
}
}
},
"minecraft:strider_baby": {
"minecraft:type_family": {
"family": [ "strider", "strider_baby", "mob" ]
},
"minecraft:is_baby": {
},
"minecraft:scale": {
"value": 0.5
},
"minecraft:ageable": {
"duration": 1200,
"feed_items": [ "warped_fungus" ],
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
},
"minecraft:behavior.follow_parent": {
"priority": 6,
"speed_multiplier": 1.1
}
},
"minecraft:strider_adult": {
"minecraft:type_family": {
"family": [ "strider", "strider_adult", "mob" ]
},
"minecraft:behavior.breed": {
"priority": 4,
"speed_multiplier": 1.0
},
"minecraft:loot": {
"table": "loot_tables/entities/strider.json"
},
"minecraft:experience_reward": {
"on_bred": "Math.Random(1,7)",
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
},
"minecraft:breedable": {
"require_tame": false,
"breeds_with": {
"mate_type": "minecraft:strider",
"baby_type": "minecraft:strider",
"breed_event": {
"event": "minecraft:entity_born",
"target": "baby"
}
},
"breed_items": [ "warped_fungus" ]
}
},
"minecraft:start_suffocating": {
"minecraft:is_shaking": {},
"minecraft:environment_sensor": {
"triggers": [
{
"filters": {
"any_of": [
{
"test": "in_lava",
"subject": "self",
"operator": "==",
"value": true
},
{
"test": "in_lava",
"subject": "other",
"operator": "==",
"value": true
}
]
},
"event": "stop_suffocating"
},
{
"filters": {
"all_of": [
{
"test": "is_riding",
"subject": "self",
"operator": "equals",
"value": false
},
{
"test": "has_component",
"subject": "self",
"operator": "not",
"value": "minecraft:behavior.move_to_liquid"
}
]
},
"event": "on_not_riding_parent"
}
]
}
},
"minecraft:detect_suffocating": {
"minecraft:environment_sensor": {
"triggers": [
{
"filters": {
"all_of": [
{
"test": "in_lava",
"subject": "self",
"operator": "==",
"value": false
},
{
"any_of": [
{
"test": "is_riding",
"subject": "self",
"operator": "==",
"value": false
},
{
"test": "in_lava",
"subject": "other",
"operator": "==",
"value": false
}
]
}
]
},
"event": "start_suffocating"
},
{
"filters": {
"all_of": [
{
"test": "is_riding",
"subject": "self",
"operator": "equals",
"value": false
},
{
"test": "has_component",
"subject": "self",
"operator": "not",
"value": "minecraft:behavior.move_to_liquid"
}
]
},
"event": "on_not_riding_parent"
}
]
}
},
"minecraft:strider_pathing_behaviors": {
"minecraft:behavior.rise_to_liquid_level": {
"priority": 0,
"liquid_y_offset": 0.25,
"rise_delta": 0.01,
"sink_delta": 0.01
},
"minecraft:behavior.move_to_liquid": {
"priority": 7,
"search_range": 16,
"search_height": 10,
"goal_radius": 0.9,
"material_type": "Lava",
"search_count": 30
},
"minecraft:behavior.random_stroll": {
"priority": 8,
"speed_multiplier": 0.8
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:type_family": {
"family": [ "strider", "mob" ]
},
"minecraft:collision_box": {
"width": 0.9,
"height": 1.7
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": {
"test": "in_contact_with_water",
"operator": "==",
"value": true
},
"cause": "drowning",
"damage_per_tick": 1
}
]
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0
},
"minecraft:balloonable": {
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:movement": {
"value": 0.16
},
"minecraft:lava_movement": {
"value": 0.32
},
"minecraft:movement.basic": {
},
"minecraft:navigation.walk": {
"can_path_over_lava": true,
"avoid_water": true,
"can_sink": false,
"can_walk_in_lava": true
},
"minecraft:jump.static": {
},
"minecraft:health": {
"value": 20,
"max": 20
},
"minecraft:fire_immune": {
},
"minecraft:nameable": {
},
"minecraft:physics": {
},
"minecraft:behavior.look_at_player": {
"priority": 9,
"look_distance": 6.0,
"probability": 0.02
},
"minecraft:behavior.random_look_around": {
"priority": 10
},
"minecraft:behavior.panic": {
"priority": 3,
"speed_multiplier": 1.1,
"panic_sound": "panic",
"sound_interval": {
"range_min": 1.0,
"range_max": 3.0
}
},
"minecraft:behavior.tempt": {
"priority": 5,
"speed_multiplier": 1.2,
"items": [
"warped_fungus",
"warped_fungus_on_a_stick"
],
"can_tempt_while_ridden": true,
"tempt_sound": "tempt",
"sound_interval": {
"range_min": 2.0,
"range_max": 5.0
}
},
"minecraft:conditional_bandwidth_optimization": {
}
},
"events": {
"minecraft:entity_spawned": {
"randomize": [
{
"weight": 40,
"trigger": "spawn_adult"
},
{
"weight": 2,
"trigger": "spawn_adult_piglin_jockey"
},
{
"weight": 8,
"trigger": "spawn_adult_parent_jockey"
},
{
"weight": 50,
"trigger": "spawn_baby"
}
]
},
"minecraft:entity_born": {
"trigger": "spawn_baby"
},
"spawn_adult": {
"add": {
"component_groups": [
"minecraft:strider_adult",
"minecraft:strider_unsaddled",
"minecraft:detect_suffocating",
"minecraft:strider_pathing_behaviors"
]
}
},
"spawn_adult_parent_jockey": {
"add": {
"component_groups": [
"minecraft:strider_adult",
"minecraft:strider_parent_jockey",
"minecraft:strider_unsaddled",
"minecraft:detect_suffocating",
"minecraft:strider_pathing_behaviors"
]
}
},
"spawn_adult_piglin_jockey": {
"add": {
"component_groups": [
"minecraft:strider_adult",
"minecraft:strider_saddled",
"minecraft:strider_piglin_jockey",
"minecraft:detect_suffocating",
"minecraft:strider_pathing_behaviors"
]
}
},
"spawn_baby": {
"add": {
"component_groups": [
"minecraft:strider_baby",
"minecraft:detect_suffocating",
"minecraft:strider_pathing_behaviors"
]
}
},
"minecraft:spawn_baby_strider_jockey": {
"add": {
"component_groups": [
"minecraft:strider_baby",
"minecraft:detect_suffocating"
]
}
},
"minecraft:ageable_grow_up": {
"remove": {
"component_groups": [
"minecraft:strider_baby"
]
},
"add": {
"component_groups": [
"minecraft:strider_adult",
"minecraft:strider_unsaddled"
]
}
},
"minecraft:on_saddled": {
"remove": {
"component_groups": [
"minecraft:strider_unsaddled"
]
},
"add": {
"component_groups": [
"minecraft:strider_saddled"
]
}
},
"start_suffocating": {
"add": {
"component_groups": [
"minecraft:start_suffocating"
]
}
},
"stop_suffocating": {
"add": {
"component_groups": [
"minecraft:detect_suffocating"
]
},
"remove": {
"component_groups": [
"minecraft:start_suffocating"
]
}
},
"on_not_riding_parent": {
"add": {
"component_groups": [
"minecraft:strider_pathing_behaviors"
]
}
}
}
}
}

View File

@ -0,0 +1,274 @@
{
"format_version": "1.18.30",
"minecraft:entity": {
"description": {
"identifier": "minecraft:zoglin",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"zoglin_baby": {
"minecraft:type_family": {
"family": [ "zoglin", "zoglin_baby", "undead", "mob" ]
},
"minecraft:is_baby": {
},
"minecraft:attack": {
"damage": 0.5
},
"minecraft:scale": {
"value": 0.5
},
"minecraft:collision_box": {
"width": 0.85,
"height": 0.85
},
"minecraft:custom_hit_test": {
"hitboxes": [
{
"width": 1.0,
"height": 0.85,
"pivot": [ 0, 0.5, 0 ]
}
]
}
},
"zoglin_adult": {
"minecraft:type_family": {
"family": [ "zoglin", "zoglin_adult", "undead", "mob" ]
},
"minecraft:collision_box": {
"width": 1.4,
"height": 1.4
},
"minecraft:custom_hit_test": {
"hitboxes": [
{
"width": 2.0,
"height": 1.75,
"pivot": [ 0, 1, 0 ]
}
]
},
"minecraft:behavior.hurt_by_target": {
"priority": 1
},
"minecraft:attack": {
"damage": [ 3, 8 ]
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:nameable": {
},
"minecraft:loot": {
"table": "loot_tables/entities/zoglin.json"
},
"minecraft:experience_reward": {
"on_bred": "Math.Random(1,7)",
"on_death": "query.last_hit_by_player ? 5 : 0"
},
"minecraft:health": {
"value": 40,
"max": 40
},
"minecraft:knockback_resistance": {
"value": 0.6
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 3,
"within_radius": 16.0,
"entity_types": [
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "zoglin"
},
{
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "creeper"
}
]
},
"max_dist": 16
}
],
"must_see": true
},
"minecraft:behavior.melee_attack": {
"priority": 4,
"reach_multiplier": 2.15, // Matches Java reach which is 3.0 blocks (collision_box:width * reach_multiplier)
"speed_multiplier": 1.4,
"track_target": true
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0,
"breathes_water": true
},
"minecraft:movement": {
"value": 0.25
},
"minecraft:navigation.walk": {
"is_amphibious": true,
"can_path_over_water": false,
"avoid_water": true,
"avoid_damage_blocks": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:fire_immune": {
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0
},
"minecraft:balloonable": {
},
"minecraft:despawn": {
"filters": {
"any_of": [
{
"all_of": [
{
"test": "is_persistent",
"value": false
},
{
"test": "distance_to_nearest_player",
"operator": ">",
"value": 54
}
]
},
{
"all_of": [
{
"test": "is_persistent",
"value": false
},
{
"test": "inactivity_timer",
"subject": "self",
"value": 30
},
{
"test": "random_chance",
"value": 800
},
{
"test": "distance_to_nearest_player",
"operator": ">",
"value": 32
}
]
}
]
}
},
"minecraft:behavior.random_stroll": {
"priority": 7,
"speed_multiplier": 1.0
},
"minecraft:behavior.random_look_around": {
"priority": 9
},
"minecraft:behavior.look_at_player": {
"priority": 8,
"look_distance": 6.0,
"probability": 0.02
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:conditional_bandwidth_optimization": {
}
},
"events": {
"minecraft:entity_transformed": {
"sequence": [
{
"filters": {
"test": "has_component",
"subject": "other",
"value": "minecraft:is_baby"
},
"add": {
"component_groups": [
"zoglin_baby"
]
}
},
{
"filters": {
"test": "has_component",
"subject": "other",
"operator": "!=",
"value": "minecraft:is_baby"
},
"add": {
"component_groups": [
"zoglin_adult"
]
}
}
]
},
"minecraft:entity_spawned": {
"randomize": [
{
"weight": 95,
"add": {
"component_groups": [
"zoglin_adult"
]
}
},
{
"weight": 5,
"add": {
"component_groups": [
"zoglin_baby"
]
}
}
]
},
"minecraft:as_adult": {
"add": {
"component_groups": [
"zoglin_adult"
]
}
},
"minecraft:as_baby": {
"add": {
"component_groups": [
"zoglin_baby"
]
}
}
}
}
}