{ "format_version": "1.26.30", "minecraft:entity": { "description": { "identifier": "minecraft:donkey", "spawn_category": "creature", "is_spawnable": true, "is_summonable": true }, "component_groups": { "minecraft:donkey_baby": { "minecraft:is_baby": {}, "minecraft:scale": { "value": 0.5 }, "minecraft:ageable": { "duration": 1200, "feed_items": [ { "item": "wheat", "growth": 0.016667 }, { "item": "sugar", "growth": 0.025 }, { "item": "hay_block", "growth": 0.15 }, { "item": "apple", "growth": 0.05 }, { "item": "carrot", "growth": 0.05 }, { "item": "golden_carrot", "growth": 0.05 }, { "item": "golden_apple", "growth": 0.2 }, { "item": "appleEnchanted", "growth": 0.2 } ], "pause_growth_items": [ "golden_dandelion" ], "reset_growth_items": [ "golden_dandelion" ], "grow_up": { "event": "minecraft:ageable_grow_up", "target": "self" } }, "minecraft:behavior.follow_parent": { "priority": 4, "speed_multiplier": 1.0 } }, "minecraft:donkey_adult": { "minecraft:experience_reward": { "on_bred": "Math.Random(1,7)", "on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0" }, "minecraft:loot": { "table": "loot_tables/entities/horse.json" }, "minecraft:leashable_to": {}, "minecraft:behavior.run_around_like_crazy": { "priority": 1, "speed_multiplier": 1.2 }, "minecraft:behavior.breed": { "priority": 2, "speed_multiplier": 1.0 } }, "minecraft:donkey_wild": { "minecraft:rideable": { "seat_count": 1, "family_types": ["player", "baby_undead"], "interact_text": "action.interact.mount", "seats": { "position": [0.0, 0.925, -0.2] } }, "minecraft:behavior.mount_pathing": { "priority": 2, "speed_multiplier": 1.5, "target_dist": 0.0, "track_target": true }, "minecraft:tamemount": { "min_temper": 0, "max_temper": 100, "feed_text": "action.interact.feed", "ride_text": "action.interact.mount", "feed_items": [ { "item": "wheat", "temper_mod": 3 }, { "item": "sugar", "temper_mod": 3 }, { "item": "apple", "temper_mod": 3 }, { "item": "carrot", "temper_mod": 3 }, { "item": "golden_carrot", "temper_mod": 5 }, { "item": "golden_apple", "temper_mod": 10 }, { "item": "appleEnchanted", "temper_mod": 10 } ], "auto_reject_items": [ { "item": "horsearmorleather" }, { "item": "horsearmoriron" }, { "item": "horsearmorgold" }, { "item": "horsearmordiamond" }, { "item": "minecraft:copper_horse_armor" }, { "item": "minecraft:netherite_horse_armor" }, { "item": "saddle" } ], "tame_event": { "event": "minecraft:on_tame", "target": "self" } } }, "minecraft:donkey_tamed": { "minecraft:is_tamed": {}, "minecraft:equippable": { "slots": [ { "slot": 0, "item": "saddle", "accepted_items": ["saddle"], "on_equip": { "event": "minecraft:donkey_saddled" }, "on_unequip": { "event": "minecraft:donkey_unsaddled" } } ] }, "minecraft:interact": { "interactions": [ { "on_interact": { "filters": { "all_of": [ { "test": "has_equipment", "subject": "self", "domain": "inventory", "operator": "not", "value": "saddle" }, { "test": "has_equipment", "subject": "other", "domain": "hand", "value": "saddle" }, { "test": "is_sneak_held", "subject": "other", "value": false } ] }, "target": "self" }, "equip_item_slot": "0", "interact_text": "action.interact.saddle" }, { "on_interact": { "filters": { "all_of": [ { "test": "rider_count", "subject": "self", "operator": "equals", "value": 0 }, { "test": "has_equipment", "subject": "self", "domain": "inventory", "value": "saddle" }, { "test": "has_equipment", "subject": "other", "domain": "hand", "value": "shears" }, { "test": "is_sneak_held", "subject": "other", "value": false } ] } }, "hurt_item": 1, "drop_item_slot": "0", "drop_item_y_offset": 1.1, "interact_text": "action.interact.removesaddle", "play_sounds": "unsaddle", "vibration": "shear" } ] }, "minecraft:rideable": { "seat_count": 1, "crouching_skip_interact": true, "family_types": ["player"], "interact_text": "action.interact.ride.horse", "seats": { "position": [0.0, 0.925, -0.2] } }, "minecraft:behavior.player_ride_tamed": {}, "minecraft:inventory": { "inventory_size": 16, "container_type": "horse" }, "minecraft:breedable": { "require_tame": true, "breeds_with": { "minecraft:donkey": {}, "minecraft:horse": {} }, "breed_items": ["golden_carrot", "golden_apple", "appleEnchanted"] } }, "minecraft:donkey_unchested": { "minecraft:interact": { "interactions": [ { "on_interact": { "filters": { "all_of": [ { "test": "has_equipment", "subject": "self", "domain": "inventory", "operator": "not", "value": "saddle" }, { "test": "has_equipment", "subject": "other", "domain": "hand", "value": "saddle" }, { "test": "is_sneak_held", "subject": "other", "value": false } ] }, "target": "self" }, "equip_item_slot": "0", "interact_text": "action.interact.saddle" }, { "on_interact": { "filters": { "all_of": [ { "test": "rider_count", "subject": "self", "operator": "equals", "value": 0 }, { "test": "has_equipment", "subject": "self", "domain": "inventory", "value": "saddle" }, { "test": "has_equipment", "subject": "other", "domain": "hand", "value": "shears" }, { "test": "is_sneak_held", "subject": "other", "value": false } ] } }, "hurt_item": 1, "drop_item_slot": "0", "drop_item_y_offset": 1.1, "interact_text": "action.interact.removesaddle", "play_sounds": "unsaddle", "vibration": "shear" }, { "play_sounds": "armor.equip_generic", "on_interact": { "filters": { "all_of": [ { "test": "is_sneaking", "subject": "other", "value": false }, { "test": "has_equipment", "domain": "hand", "subject": "other", "value": "chest" } ] }, "event": "minecraft:on_chest", "target": "self" }, "use_item": true, "interact_text": "action.interact.attachchest" } ] } }, "minecraft:donkey_chested": { "minecraft:is_chested": {}, "minecraft:interact": { "interactions": [ { "on_interact": { "filters": { "all_of": [ { "test": "has_equipment", "subject": "self", "domain": "inventory", "operator": "not", "value": "saddle" }, { "test": "has_equipment", "subject": "other", "domain": "hand", "value": "saddle" }, { "test": "is_family", "subject": "other", "value": "player" }, { "test": "is_sneaking", "subject": "other", "value": false } ] }, "target": "self" }, "equip_item_slot": "0", "interact_text": "action.interact.saddle" }, { "on_interact": { "filters": { "all_of": [ { "test": "rider_count", "subject": "self", "operator": "equals", "value": 0 }, { "test": "has_equipment", "subject": "self", "domain": "inventory", "value": "saddle" }, { "test": "has_equipment", "subject": "other", "domain": "hand", "value": "shears" }, { "test": "is_sneak_held", "subject": "other", "value": false } ] } }, "hurt_item": 1, "drop_item_slot": "0", "drop_item_y_offset": 1.1, "interact_text": "action.interact.removesaddle", "play_sounds": "unsaddle", "vibration": "shear" } ] } }, "minecraft:donkey_saddled": { "minecraft:is_saddled": {}, "minecraft:input_ground_controlled": {}, "minecraft:can_power_jump": {} } }, "components": { "minecraft:is_hidden_when_invisible": {}, "minecraft:ambient_sound_interval": {}, "minecraft:type_family": { "family": [ "donkey", "mob" ] }, "minecraft:breathable": { "total_supply": 15, "suffocate_time": 0 }, "minecraft:collision_box": { "width": 1.4, "height": 1.6 }, "minecraft:health": { "value": { "range_min": 15, "range_max": 30 } }, "minecraft:hurt_on_condition": { "damage_conditions": [ { "filters": { "test": "in_lava", "subject": "self" }, "cause": "lava", "damage_per_tick": 4 } ] }, "minecraft:movement": { "value": 0.175 }, "minecraft:navigation.walk": { "can_path_over_water": true, "avoid_water": true, "avoid_damage_blocks": true }, "minecraft:movement.basic": {}, "minecraft:jump.static": {}, "minecraft:nameable": {}, "minecraft:offspring": { "parent_centric_attribute_blending": [ "minecraft:health" ], "inherit_tamed": false, "offspring_pairs": { "minecraft:donkey": "minecraft:donkey", "minecraft:horse": "minecraft:mule" } }, "minecraft:spawn_egg_interaction": {}, "minecraft:horse.jump_strength": { "value": 0.5 }, "minecraft:leashable": { "presets": [ { "filter": { "test": "is_family", "subject": "other", "value": "happy_ghast" }, "spring_type": "quad_dampened" } ] }, "minecraft:balloonable": {}, "minecraft:healable": { "items": [ { "item": "wheat", "heal_amount": 2 }, { "item": "sugar", "heal_amount": 1 }, { "item": "hay_block", "heal_amount": 20 }, { "item": "apple", "heal_amount": 3 }, { "item": "carrot", "heal_amount": 3 }, { "item": "golden_carrot", "heal_amount": 4 }, { "item": "golden_apple", "heal_amount": 10 }, { "item": "appleEnchanted", "heal_amount": 10 } ] }, "minecraft:despawn": { "despawn_from_distance": {} }, // Used exclusively to dismount the passenger. "minecraft:behavior.float": { "priority": 0, "chance_per_tick_to_float": 0.0, "time_under_water_to_dismount_passengers": 2.0 }, "minecraft:buoyant": { "base_buoyancy": 1.0, "apply_gravity": false, "can_auto_step_from_liquid": true, "movement_type": "bobbing", "liquid_blocks": [ "minecraft:water", "minecraft:flowing_water", "minecraft:lava", "minecraft:flowing_lava" ] }, "minecraft:behavior.panic": { "priority": 1, "speed_multiplier": 1.2 }, "minecraft:behavior.tempt": { "priority": 5, "speed_multiplier": 1.2, "items": [ "golden_apple", "appleEnchanted", "golden_carrot" ] }, "minecraft:behavior.random_stroll": { "priority": 6, "speed_multiplier": 0.7 }, "minecraft:behavior.look_at_player": { "priority": 7, "look_distance": 6.0, "probability": 0.02 }, "minecraft:behavior.random_look_around": { "priority": 8 }, "minecraft:physics": {}, "minecraft:pushable_by_entity": { "presets": [ { "filters": { "all_of": [ { "test": "is_family", "subject": "other", "value": "sulfur_cube" }, { "test": "enum_property", "subject": "other", "domain": "minecraft:sulfur_cube_archetype", "operator": "not", "value": "none" }, { "test": "is_controlling_passenger_family", "subject": "self", "value": "player" } ] }, "push_mode": "none" } ] }, "minecraft:pushable_by_block": { }, "minecraft:conditional_bandwidth_optimization": {} }, "events": { "minecraft:entity_spawned": { "randomize": [ { "weight": 80, "add": { "component_groups": [ "minecraft:donkey_adult", "minecraft:donkey_wild" ] } }, { "weight": 20, "add": { "component_groups": ["minecraft:donkey_baby"] } } ] }, "minecraft:entity_born": { "add": { "component_groups": ["minecraft:donkey_baby"] } }, "minecraft:spawn_adult": { "add": { "component_groups": [ "minecraft:donkey_adult", "minecraft:donkey_wild" ] } }, "minecraft:spawn_tame_adult": { "add": { "component_groups": [ "minecraft:donkey_adult", "minecraft:donkey_tamed", "minecraft:donkey_unchested" ] } }, "minecraft:on_tame": { "remove": { "component_groups": ["minecraft:donkey_wild"] }, "add": { "component_groups": [ "minecraft:donkey_tamed", "minecraft:donkey_unchested" ] } }, "minecraft:ageable_grow_up": { "remove": { "component_groups": ["minecraft:donkey_baby"] }, "add": { "component_groups": [ "minecraft:donkey_adult", "minecraft:donkey_wild" ] } }, "minecraft:on_chest": { "remove": { "component_groups": ["minecraft:donkey_unchested"] }, "add": { "component_groups": ["minecraft:donkey_chested"] } }, "minecraft:donkey_saddled": { "add": { "component_groups": ["minecraft:donkey_saddled"] }, "play_sound": { "sound": "saddle" } }, "minecraft:donkey_unsaddled": { "remove": { "component_groups": ["minecraft:donkey_saddled"] } } } } }