feat(pet): add Hey Hey chicken pet addon
All checks were successful
Deploy Addons / deploy (push) Successful in 15s
All checks were successful
Deploy Addons / deploy (push) Successful in 15s
Tameable white chicken modelled on Hey Hey from Moana — custom plump geometry, waddly walk/peck animations, hatching egg item, and vanilla chicken sounds. Mounted on all 4 servers via docker-compose. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
247
addon/heyhe_pet_BP/entities/heyhe_chicken.json
Normal file
247
addon/heyhe_pet_BP/entities/heyhe_chicken.json
Normal file
@@ -0,0 +1,247 @@
|
||||
{
|
||||
"format_version": "1.21.0",
|
||||
"minecraft:entity": {
|
||||
"description": {
|
||||
"identifier": "silverlabs:heyhe_chicken",
|
||||
"is_spawnable": true,
|
||||
"is_summonable": true,
|
||||
"is_experimental": false,
|
||||
"properties": {
|
||||
"silverlabs:heyhe_tamed": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"client_sync": true
|
||||
},
|
||||
"silverlabs:heyhe_sitting": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"client_sync": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"component_groups": {
|
||||
|
||||
"silverlabs:wild": {
|
||||
"minecraft:behavior.tempt": {
|
||||
"priority": 3,
|
||||
"speed_multiplier": 0.6,
|
||||
"items": ["wheat", "wheat_seeds", "beetroot_seeds", "melon_seeds", "pumpkin_seeds"],
|
||||
"can_tempt_vertically": false
|
||||
},
|
||||
"minecraft:behavior.avoid_mob_type": {
|
||||
"priority": 4,
|
||||
"max_dist": 8,
|
||||
"walk_speed_multiplier": 1.2,
|
||||
"sprint_speed_multiplier": 1.2,
|
||||
"entity_types": [
|
||||
{
|
||||
"filters": {
|
||||
"test": "is_family",
|
||||
"subject": "other",
|
||||
"value": "monster"
|
||||
},
|
||||
"max_dist": 8
|
||||
}
|
||||
]
|
||||
},
|
||||
"minecraft:interact": {
|
||||
"interactions": [
|
||||
{
|
||||
"on_interact": {
|
||||
"filters": {
|
||||
"all_of": [
|
||||
{ "test": "is_family", "subject": "other", "value": "player" },
|
||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "wheat" }
|
||||
]
|
||||
},
|
||||
"event": "silverlabs:become_tamed",
|
||||
"target": "self"
|
||||
},
|
||||
"use_item": true,
|
||||
"interact_text": "action.interact.tame",
|
||||
"play_sounds": "random.eat",
|
||||
"particle_on_start": {
|
||||
"particle_type": "minecraft:heart_particle",
|
||||
"particle_y_offset": 1.0,
|
||||
"particle_offset_towards_interactor": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"on_interact": {
|
||||
"filters": {
|
||||
"all_of": [
|
||||
{ "test": "is_family", "subject": "other", "value": "player" },
|
||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "wheat_seeds" }
|
||||
]
|
||||
},
|
||||
"event": "silverlabs:become_tamed",
|
||||
"target": "self"
|
||||
},
|
||||
"use_item": true,
|
||||
"interact_text": "action.interact.tame",
|
||||
"play_sounds": "random.eat",
|
||||
"particle_on_start": {
|
||||
"particle_type": "minecraft:heart_particle",
|
||||
"particle_y_offset": 1.0,
|
||||
"particle_offset_towards_interactor": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
"silverlabs:tamed": {
|
||||
"minecraft:behavior.follow_owner": {
|
||||
"priority": 4,
|
||||
"speed_multiplier": 0.9,
|
||||
"start_distance": 8,
|
||||
"stop_distance": 3
|
||||
},
|
||||
"minecraft:teleport": {
|
||||
"dark_teleport_chance": 0.01,
|
||||
"light_teleport_chance": 0.01,
|
||||
"max_random_teleport_time": 30,
|
||||
"min_random_teleport_time": 15,
|
||||
"target_distance": 64,
|
||||
"target_teleport_chance": 0.05
|
||||
},
|
||||
"minecraft:interact": {
|
||||
"interactions": [
|
||||
{
|
||||
"on_interact": {
|
||||
"filters": {
|
||||
"all_of": [
|
||||
{ "test": "is_family", "subject": "other", "value": "player" },
|
||||
{
|
||||
"test": "has_equipment",
|
||||
"subject": "other",
|
||||
"domain": "hand",
|
||||
"operator": "equals",
|
||||
"value": "air"
|
||||
}
|
||||
]
|
||||
},
|
||||
"event": "silverlabs:toggle_sit",
|
||||
"target": "self"
|
||||
},
|
||||
"use_item": false,
|
||||
"interact_text": "action.interact.sit"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
"silverlabs:sitting": {
|
||||
"minecraft:behavior.sit": {
|
||||
"start_chance": 1.0
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
"components": {
|
||||
"minecraft:type_family": {
|
||||
"family": ["heyhe_chicken", "chicken", "animal"]
|
||||
},
|
||||
"minecraft:physics": {},
|
||||
"minecraft:pushable": {
|
||||
"is_pushable": true,
|
||||
"is_pushable_by_piston": true
|
||||
},
|
||||
"minecraft:collision_box": {
|
||||
"width": 0.5,
|
||||
"height": 0.7
|
||||
},
|
||||
"minecraft:health": {
|
||||
"value": 10,
|
||||
"max": 10
|
||||
},
|
||||
"minecraft:movement": {
|
||||
"value": 0.25
|
||||
},
|
||||
"minecraft:navigation.walk": {
|
||||
"can_path_over_water": false,
|
||||
"avoid_water": true,
|
||||
"avoid_damage_blocks": true
|
||||
},
|
||||
"minecraft:movement.basic": {},
|
||||
"minecraft:jump.static": {},
|
||||
"minecraft:can_climb": {},
|
||||
"minecraft:breathable": {
|
||||
"total_supply": 15,
|
||||
"suffocate_time": -1
|
||||
},
|
||||
"minecraft:despawn": {
|
||||
"despawn_from_distance": {}
|
||||
},
|
||||
"minecraft:nameable": {},
|
||||
"minecraft:behavior.float": { "priority": 0 },
|
||||
"minecraft:behavior.panic": {
|
||||
"priority": 1,
|
||||
"speed_multiplier": 1.5
|
||||
},
|
||||
"minecraft:behavior.look_at_player": {
|
||||
"priority": 9,
|
||||
"target_distance": 6,
|
||||
"look_time": [2, 4]
|
||||
},
|
||||
"minecraft:behavior.random_look_around": {
|
||||
"priority": 10
|
||||
},
|
||||
"minecraft:behavior.random_stroll": {
|
||||
"priority": 8,
|
||||
"speed_multiplier": 0.6
|
||||
}
|
||||
},
|
||||
|
||||
"events": {
|
||||
"minecraft:entity_spawned": {
|
||||
"add": {
|
||||
"component_groups": ["silverlabs:wild"]
|
||||
}
|
||||
},
|
||||
"silverlabs:become_tamed": {
|
||||
"set_property": {
|
||||
"silverlabs:heyhe_tamed": true
|
||||
},
|
||||
"remove": {
|
||||
"component_groups": ["silverlabs:wild"]
|
||||
},
|
||||
"add": {
|
||||
"component_groups": ["silverlabs:tamed"]
|
||||
}
|
||||
},
|
||||
"silverlabs:toggle_sit": {
|
||||
"sequence": [
|
||||
{
|
||||
"filters": {
|
||||
"test": "bool_property",
|
||||
"domain": "silverlabs:heyhe_sitting",
|
||||
"value": false
|
||||
},
|
||||
"set_property": {
|
||||
"silverlabs:heyhe_sitting": true
|
||||
},
|
||||
"add": {
|
||||
"component_groups": ["silverlabs:sitting"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"filters": {
|
||||
"test": "bool_property",
|
||||
"domain": "silverlabs:heyhe_sitting",
|
||||
"value": true
|
||||
},
|
||||
"set_property": {
|
||||
"silverlabs:heyhe_sitting": false
|
||||
},
|
||||
"remove": {
|
||||
"component_groups": ["silverlabs:sitting"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
66
addon/heyhe_pet_BP/entities/heyhe_egg.json
Normal file
66
addon/heyhe_pet_BP/entities/heyhe_egg.json
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"format_version": "1.21.0",
|
||||
"minecraft:entity": {
|
||||
"description": {
|
||||
"identifier": "silverlabs:heyhe_egg",
|
||||
"is_spawnable": false,
|
||||
"is_summonable": true,
|
||||
"is_experimental": false
|
||||
},
|
||||
|
||||
"components": {
|
||||
"minecraft:type_family": {
|
||||
"family": ["heyhe_egg"]
|
||||
},
|
||||
"minecraft:collision_box": {
|
||||
"width": 0.5,
|
||||
"height": 0.6
|
||||
},
|
||||
"minecraft:physics": {
|
||||
"has_gravity": true,
|
||||
"has_collision": true
|
||||
},
|
||||
"minecraft:pushable": {
|
||||
"is_pushable": false,
|
||||
"is_pushable_by_piston": false
|
||||
},
|
||||
"minecraft:health": {
|
||||
"value": 5,
|
||||
"max": 5
|
||||
},
|
||||
"minecraft:timer": {
|
||||
"looping": false,
|
||||
"time": 10,
|
||||
"time_down_event": {
|
||||
"event": "silverlabs:hatch",
|
||||
"target": "self"
|
||||
}
|
||||
},
|
||||
"minecraft:ambient_sound_interval": {
|
||||
"event_name": "mob.chicken.egg",
|
||||
"range": 0,
|
||||
"value": 8
|
||||
}
|
||||
},
|
||||
|
||||
"events": {
|
||||
"silverlabs:hatch": {
|
||||
"sequence": [
|
||||
{
|
||||
"spawn_entity": {
|
||||
"entities_to_spawn": [
|
||||
{
|
||||
"entity_type": "silverlabs:heyhe_chicken",
|
||||
"num_to_spawn": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"die": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
31
addon/heyhe_pet_BP/items/heyhe_egg.json
Normal file
31
addon/heyhe_pet_BP/items/heyhe_egg.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"format_version": "1.21.0",
|
||||
"minecraft:item": {
|
||||
"description": {
|
||||
"identifier": "silverlabs:heyhe_egg",
|
||||
"category": "Nature"
|
||||
},
|
||||
"components": {
|
||||
"minecraft:max_stack_size": 16,
|
||||
"minecraft:icon": {
|
||||
"texture": "heyhe_egg"
|
||||
},
|
||||
"minecraft:entity_placer": {
|
||||
"entity": "silverlabs:heyhe_egg",
|
||||
"dispense_on": [
|
||||
"grass",
|
||||
"dirt",
|
||||
"stone",
|
||||
"sand",
|
||||
"gravel",
|
||||
"coarse_dirt",
|
||||
"podzol",
|
||||
"mycelium",
|
||||
"farmland",
|
||||
"grass_path",
|
||||
"dirt_with_roots"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
23
addon/heyhe_pet_BP/manifest.json
Normal file
23
addon/heyhe_pet_BP/manifest.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"format_version": 2,
|
||||
"header": {
|
||||
"name": "Hey Hey Chicken Pet",
|
||||
"description": "Hey Hey the loyal Moana chicken — tameable, following pet with waddly personality.",
|
||||
"uuid": "fc811a53-dbdb-4701-bc63-c3ca1d793c47",
|
||||
"version": [1, 0, 0],
|
||||
"min_engine_version": [1, 21, 0]
|
||||
},
|
||||
"modules": [
|
||||
{
|
||||
"type": "data",
|
||||
"uuid": "f7aae24a-06d8-432b-85dc-359c4fda9dfd",
|
||||
"version": [1, 0, 0]
|
||||
}
|
||||
],
|
||||
"dependencies": [
|
||||
{
|
||||
"uuid": "45ec17df-0d84-456f-b2cc-2d990f96e6d5",
|
||||
"version": [1, 0, 0]
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
addon/heyhe_pet_BP/pack_icon.png
Normal file
BIN
addon/heyhe_pet_BP/pack_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 971 B |
18
addon/heyhe_pet_BP/recipes/heyhe_egg.json
Normal file
18
addon/heyhe_pet_BP/recipes/heyhe_egg.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"format_version": "1.21.0",
|
||||
"minecraft:recipe_shapeless": {
|
||||
"description": {
|
||||
"identifier": "silverlabs:heyhe_egg_recipe"
|
||||
},
|
||||
"tags": ["crafting_table"],
|
||||
"ingredients": [
|
||||
{ "item": "minecraft:egg" },
|
||||
{ "item": "minecraft:feather" },
|
||||
{ "item": "minecraft:gold_nugget" }
|
||||
],
|
||||
"result": {
|
||||
"item": "silverlabs:heyhe_egg",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user