Better Dungeons' small dungeons: one or two chests, as the mod caps them

Better Dungeons' small dungeon templates hold several chests; its Java
chest processor keeps the first, then each other one on nextFloat <= 0.2
until two have stayed, and turns the rest into cave air. Carry dropped it,
so every chest stayed.

- Game: horizon:count_cap. Of `blocks`, the first `min` a placement meets
  stay, then each stays on settings.getRandom(pos).nextFloat() <= chance
  until `max` have; the others become `replacement`. Counted per
  placement (PlaceSettings, reset in process_infos), like the mod's
  DungeonContext, set up per StructureTemplate.placeInWorld.
- Carry: betterdungeons:small_dungeon_chest_processor becomes it with the
  mod's config defaults (1, 2, 0.2; chest and trapped chest).

Seed 1234, five small dungeons decorated: 12 chests -> 6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-18 22:39:03 +02:00
parent c7985974e7
commit 50215b484a
3 changed files with 123 additions and 2 deletions
+5 -2
View File
@@ -458,8 +458,11 @@ Two cases the oracle fills in:
polished diorite, blank pots) become what its processors make of them: the fixed swaps as
vanilla's `rule`, the random ones (suspicious sand, sand and sandstone, upside-down stairs,
cobwebs, sherds on the pots) as the game's `horizon:pick`, on the same `nextFloat` as the
mod. 133 of the 1,427 processors are carried; 1,294 are still taken out (blocks swapped,
aged or propped up, YUNG's chest caps).
mod. Better Dungeons' small dungeons keep one chest and each other one with a fifth's
chance, two at most (the game's `horizon:count_cap`, counted per placement as the mod's
DungeonContext is): 12 chests in five small dungeons at seed 1234 become 6.
136 of the 1,427 processors are carried; 1,291 are still taken out (blocks swapped, aged
or propped up).
In the 128×128-chunk square (seed 1234), every spawner of a mod structure now has its mob:
in the Overworld 83 Better Dungeons spawners held the template's placeholder pig and 17 of
Moog's were empty (763 spawners with a mob, up from 628); in the Nether the 52 empty ones