Files
minecraft-aiworld/camping-supplies-addon/camping_supplies_BP/blocks/hammock_cloth.json
SysAdmin 7e3432d868
All checks were successful
Deploy Addons / deploy (push) Successful in 15s
fix(camping): half-slab hammock geometry + smarter tent grounding
- Hammock now uses a custom geometry.silverlabs.hammock_slab (8-voxel
  tall half-slab instead of a full cube), matching its thin collision
  box so the block reads visually as a hammock cradle, not a brick.

- Tent placement now projects the player's feet down to the nearest
  solid block (up to 3 blocks) before picking the base Y, so mid-jump
  fractional positions or standing-on-slab cases don't mis-place the
  footprint one block too high.

- Failure messages now include the exact failing cell coordinates and
  the block type that's in the way, so we can diagnose live pitch
  attempts without guesswork.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 15:08:34 +01:00

34 lines
840 B
JSON

{
"format_version": "1.21.0",
"minecraft:block": {
"description": {
"identifier": "silverlabs:hammock_cloth"
},
"components": {
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 0.3
},
"minecraft:destructible_by_explosion": {
"explosion_resistance": 0.5
},
"minecraft:map_color": "#B43C37",
"minecraft:material_instances": {
"*": {
"texture": "hammock_cloth",
"render_method": "alpha_test"
}
},
"minecraft:collision_box": {
"origin": [-8, 0, -8],
"size": [16, 1, 16]
},
"minecraft:selection_box": {
"origin": [-8, 0, -8],
"size": [16, 4, 16]
},
"minecraft:geometry": "geometry.silverlabs.hammock_slab",
"minecraft:light_dampening": 0
}
}
}