fix(addons): silence boot-time warnings on naturalist + dynamite
All checks were successful
Deploy Addons / deploy (push) Successful in 14s
All checks were successful
Deploy Addons / deploy (push) Successful in 14s
- naturalist-lite: add stub item definitions for silverlabs_nat:frog_leg, cooked_frog_leg, snake_egg_block. Owl + snake behaviour files reference these but they were never defined, so BDS logged "Unknown item during Deferred ItemDescriptor resolution" on every boot. Stubs are functional — frog_leg restores 2 hunger, cooked 4, snake egg is a placeable nature-tab item. RP texture entries + lang strings added for completeness; icons fall back to candy-cane until art lands. - dynamite: drop the broken spawn_aoe_cloud component on thrown_banger (its particle id "minecraft:explosion_manual" doesn't exist in BDS; every replacement I tried also failed schema validation). The random.fuse hit_sound + impact_damage still fire, the entity is destroyed on hit — just no lingering AOE puff. Also: add *.bak.local to .gitignore so docker-compose.yml.bak.local and similar local backup files stop showing up in git status. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -20,6 +20,9 @@ addon/build/
|
||||
# (LEVEL_NAME, etc.) that must survive deploys. Never committed.
|
||||
docker-compose.override.yml
|
||||
|
||||
# Local-only backup files (e.g. docker-compose.yml.bak.local)
|
||||
*.bak.local
|
||||
|
||||
# Server data (Docker volumes are external, but just in case)
|
||||
server-data/
|
||||
|
||||
|
||||
@@ -25,12 +25,6 @@
|
||||
"destroy_on_hit": true,
|
||||
"semi_random_diff_damage": false
|
||||
},
|
||||
"spawn_aoe_cloud": {
|
||||
"radius": 1.5,
|
||||
"duration": 0,
|
||||
"particle": "minecraft:explosion_manual",
|
||||
"affect_owner": false
|
||||
},
|
||||
"remove_on_hit": {}
|
||||
},
|
||||
"power": 1.4,
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"format_version": "1.21.0",
|
||||
"minecraft:item": {
|
||||
"description": {
|
||||
"identifier": "silverlabs_nat:cooked_frog_leg",
|
||||
"menu_category": { "category": "items", "group": "itemGroup.name.miscFood" }
|
||||
},
|
||||
"components": {
|
||||
"minecraft:icon": "silverlabs_nat.cooked_frog_leg",
|
||||
"minecraft:max_stack_size": 64,
|
||||
"minecraft:food": { "nutrition": 4, "saturation_modifier": 1.2 },
|
||||
"minecraft:use_animation": "eat",
|
||||
"minecraft:use_modifiers": { "use_duration": 1.6, "movement_modifier": 0.35 }
|
||||
}
|
||||
}
|
||||
}
|
||||
16
naturalist-lite-addon/naturalist_lite_BP/items/frog_leg.json
Normal file
16
naturalist-lite-addon/naturalist_lite_BP/items/frog_leg.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"format_version": "1.21.0",
|
||||
"minecraft:item": {
|
||||
"description": {
|
||||
"identifier": "silverlabs_nat:frog_leg",
|
||||
"menu_category": { "category": "items", "group": "itemGroup.name.miscFood" }
|
||||
},
|
||||
"components": {
|
||||
"minecraft:icon": "silverlabs_nat.frog_leg",
|
||||
"minecraft:max_stack_size": 64,
|
||||
"minecraft:food": { "nutrition": 2, "saturation_modifier": 0.6 },
|
||||
"minecraft:use_animation": "eat",
|
||||
"minecraft:use_modifiers": { "use_duration": 1.6, "movement_modifier": 0.35 }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"format_version": "1.21.0",
|
||||
"minecraft:item": {
|
||||
"description": {
|
||||
"identifier": "silverlabs_nat:snake_egg_block",
|
||||
"menu_category": { "category": "nature" }
|
||||
},
|
||||
"components": {
|
||||
"minecraft:icon": "silverlabs_nat.snake_egg_block",
|
||||
"minecraft:max_stack_size": 16
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,4 +16,8 @@ entity.silverlabs_nat:coral_snake_egg.name=Coral Snake Egg
|
||||
tile.silverlabs_nat:cave_snake_egg.name=Cave Snake Egg
|
||||
tile.silverlabs_nat:coral_snake_egg.name=Coral Snake Egg
|
||||
|
||||
item.silverlabs_nat:frog_leg.name=Frog Leg
|
||||
item.silverlabs_nat:cooked_frog_leg.name=Cooked Frog Leg
|
||||
item.silverlabs_nat:snake_egg_block.name=Snake Egg
|
||||
|
||||
|
||||
|
||||
@@ -94,6 +94,15 @@
|
||||
},
|
||||
"silverlabs_nat.tiger_spawn_egg": {
|
||||
"textures": "textures/sf/nba/items/tiger_default_spawn_egg"
|
||||
},
|
||||
"silverlabs_nat.frog_leg": {
|
||||
"textures": "textures/sf/nba/items/frog_leg"
|
||||
},
|
||||
"silverlabs_nat.cooked_frog_leg": {
|
||||
"textures": "textures/sf/nba/items/cooked_frog_leg"
|
||||
},
|
||||
"silverlabs_nat.snake_egg_block": {
|
||||
"textures": "textures/sf/nba/items/snake_egg_block"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user