feat(monkey): add cheeky banana-throwing monkey addon
New silverlabs:cheeky_monkey mob that wanders the lobby watching players and throwing harmless (knockback-only) silverlabs:banana_projectile at them. Drops 1-2 silverlabs:banana (food) on death. Spawn rules target jungle biomes for future deployment to survival worlds; for now the pack is bind-mounted into the lobby service only. Also bundles a stray docker-compose tidy from earlier local work (Jamie's world seed pinned, pet addons dropped from Jamie). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
41
monkey-addon/monkey_BP/entities/banana_projectile.json
Normal file
41
monkey-addon/monkey_BP/entities/banana_projectile.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"format_version": "1.21.0",
|
||||
"minecraft:entity": {
|
||||
"description": {
|
||||
"identifier": "silverlabs:banana_projectile",
|
||||
"is_spawnable": false,
|
||||
"is_summonable": true,
|
||||
"is_experimental": false
|
||||
},
|
||||
|
||||
"components": {
|
||||
"minecraft:collision_box": {
|
||||
"width": 0.25,
|
||||
"height": 0.25
|
||||
},
|
||||
"minecraft:physics": {},
|
||||
"minecraft:pushable": {
|
||||
"is_pushable": false,
|
||||
"is_pushable_by_piston": false
|
||||
},
|
||||
"minecraft:projectile": {
|
||||
"on_hit": {
|
||||
"impact_damage": {
|
||||
"damage": 0,
|
||||
"knockback": true,
|
||||
"semi_random_diff_damage": false
|
||||
},
|
||||
"remove_on_hit": {}
|
||||
},
|
||||
"power": 1.3,
|
||||
"gravity": 0.05,
|
||||
"inertia": 0.99,
|
||||
"liquid_inertia": 0.6,
|
||||
"anchor": 1,
|
||||
"offset": [0, -0.1, 0],
|
||||
"should_bounce": false,
|
||||
"hit_sound": "mob.slime.small"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
118
monkey-addon/monkey_BP/entities/cheeky_monkey.json
Normal file
118
monkey-addon/monkey_BP/entities/cheeky_monkey.json
Normal file
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"format_version": "1.21.0",
|
||||
"minecraft:entity": {
|
||||
"description": {
|
||||
"identifier": "silverlabs:cheeky_monkey",
|
||||
"is_spawnable": true,
|
||||
"is_summonable": true,
|
||||
"is_experimental": false
|
||||
},
|
||||
|
||||
"components": {
|
||||
"minecraft:type_family": {
|
||||
"family": ["cheeky_monkey", "monkey", "animal", "mob"]
|
||||
},
|
||||
"minecraft:physics": {},
|
||||
"minecraft:pushable": {
|
||||
"is_pushable": true,
|
||||
"is_pushable_by_piston": true
|
||||
},
|
||||
"minecraft:collision_box": {
|
||||
"width": 0.5,
|
||||
"height": 0.9
|
||||
},
|
||||
"minecraft:health": {
|
||||
"value": 8,
|
||||
"max": 8
|
||||
},
|
||||
"minecraft:movement": {
|
||||
"value": 0.3
|
||||
},
|
||||
"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:nameable": {},
|
||||
"minecraft:hurt_on_condition": {
|
||||
"damage_conditions": [
|
||||
{
|
||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
||||
"cause": "lava",
|
||||
"damage_per_tick": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"minecraft:loot": {
|
||||
"table": "loot_tables/entities/cheeky_monkey.json"
|
||||
},
|
||||
|
||||
"minecraft:shooter": {
|
||||
"def": "silverlabs:banana_projectile"
|
||||
},
|
||||
|
||||
"minecraft:behavior.float": { "priority": 0 },
|
||||
|
||||
"minecraft:behavior.panic": {
|
||||
"priority": 1,
|
||||
"speed_multiplier": 1.6
|
||||
},
|
||||
|
||||
"minecraft:behavior.ranged_attack": {
|
||||
"priority": 3,
|
||||
"attack_interval_min": 3.0,
|
||||
"attack_interval_max": 6.0,
|
||||
"attack_radius": 10.0,
|
||||
"speed_multiplier": 0.9
|
||||
},
|
||||
|
||||
"minecraft:behavior.nearest_attackable_target": {
|
||||
"priority": 4,
|
||||
"within_radius": 16,
|
||||
"entity_types": [
|
||||
{
|
||||
"filters": { "test": "is_family", "subject": "other", "value": "player" },
|
||||
"max_dist": 16
|
||||
}
|
||||
],
|
||||
"must_see": false,
|
||||
"reselect_targets": true,
|
||||
"must_reach": false
|
||||
},
|
||||
|
||||
"minecraft:behavior.move_towards_target": {
|
||||
"priority": 5,
|
||||
"speed_multiplier": 0.8,
|
||||
"within_radius": 10.0
|
||||
},
|
||||
|
||||
"minecraft:behavior.look_at_player": {
|
||||
"priority": 7,
|
||||
"target_distance": 14,
|
||||
"look_time": [3, 7],
|
||||
"probability": 0.9
|
||||
},
|
||||
|
||||
"minecraft:behavior.random_stroll": {
|
||||
"priority": 6,
|
||||
"speed_multiplier": 0.7,
|
||||
"interval": 60,
|
||||
"xz_dist": 8,
|
||||
"y_dist": 4
|
||||
},
|
||||
|
||||
"minecraft:behavior.random_look_around": {
|
||||
"priority": 9,
|
||||
"look_time": [2, 5]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
32
monkey-addon/monkey_BP/items/banana.json
Normal file
32
monkey-addon/monkey_BP/items/banana.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"format_version": "1.21.0",
|
||||
"minecraft:item": {
|
||||
"description": {
|
||||
"identifier": "silverlabs:banana",
|
||||
"menu_category": {
|
||||
"category": "nature"
|
||||
}
|
||||
},
|
||||
"components": {
|
||||
"minecraft:icon": {
|
||||
"textures": {
|
||||
"default": "banana"
|
||||
}
|
||||
},
|
||||
"minecraft:display_name": {
|
||||
"value": "Banana"
|
||||
},
|
||||
"minecraft:max_stack_size": 64,
|
||||
"minecraft:use_animation": "eat",
|
||||
"minecraft:use_modifiers": {
|
||||
"use_duration": 1.6,
|
||||
"movement_modifier": 0.35
|
||||
},
|
||||
"minecraft:food": {
|
||||
"nutrition": 4,
|
||||
"saturation_modifier": 0.6,
|
||||
"can_always_eat": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1,
|
||||
"entries": [
|
||||
{
|
||||
"type": "item",
|
||||
"name": "silverlabs:banana",
|
||||
"weight": 1,
|
||||
"functions": [
|
||||
{
|
||||
"function": "set_count",
|
||||
"count": { "min": 1, "max": 2 }
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
23
monkey-addon/monkey_BP/manifest.json
Normal file
23
monkey-addon/monkey_BP/manifest.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"format_version": 2,
|
||||
"header": {
|
||||
"name": "Cheeky Monkey",
|
||||
"description": "Curious banana-throwing monkeys that spawn naturally in jungles.",
|
||||
"uuid": "c9d1f11c-0eef-4374-81ee-ebde67d7a0a3",
|
||||
"version": [1, 0, 0],
|
||||
"min_engine_version": [1, 21, 0]
|
||||
},
|
||||
"modules": [
|
||||
{
|
||||
"type": "data",
|
||||
"uuid": "48d1d747-0765-49ab-8f50-e9b0236c8e32",
|
||||
"version": [1, 0, 0]
|
||||
}
|
||||
],
|
||||
"dependencies": [
|
||||
{
|
||||
"uuid": "7195b65a-171d-4324-a2df-e36ba75ec48a",
|
||||
"version": [1, 0, 0]
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
monkey-addon/monkey_BP/pack_icon.png
Normal file
BIN
monkey-addon/monkey_BP/pack_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
41
monkey-addon/monkey_BP/spawn_rules/cheeky_monkey.json
Normal file
41
monkey-addon/monkey_BP/spawn_rules/cheeky_monkey.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"format_version": "1.8.0",
|
||||
"minecraft:spawn_rules": {
|
||||
"description": {
|
||||
"identifier": "silverlabs:cheeky_monkey",
|
||||
"population_control": "animal"
|
||||
},
|
||||
"conditions": [
|
||||
{
|
||||
"minecraft:spawns_on_surface": {},
|
||||
"minecraft:brightness_filter": {
|
||||
"min": 7,
|
||||
"max": 15,
|
||||
"adjust_for_weather": false
|
||||
},
|
||||
"minecraft:weight": {
|
||||
"default": 8
|
||||
},
|
||||
"minecraft:herd": {
|
||||
"min_size": 2,
|
||||
"max_size": 4
|
||||
},
|
||||
"minecraft:density_limit": {
|
||||
"surface": 4
|
||||
},
|
||||
"minecraft:biome_filter": {
|
||||
"any_of": [
|
||||
{ "test": "has_biome_tag", "value": "jungle" },
|
||||
{ "test": "has_biome_tag", "value": "bamboo" }
|
||||
]
|
||||
},
|
||||
"minecraft:spawns_on_block_filter": [
|
||||
"minecraft:grass_block",
|
||||
"minecraft:dirt",
|
||||
"minecraft:podzol",
|
||||
"minecraft:moss_block"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user