bte_optimization_fixes-1.42.0.jar
Curse Maven Snippet
What's new
Mimics in template structures and never in important chests
Mimic 1.2.38 only reaches chests created with StructurePiece.createChest
(old vanilla structures), igloos, end cities and vanilla dungeons, plus
Dungeons Enhanced through Structure Gel. Template-based structures (most
modded ones) never get mimics.
- After a structure is placed in a chunk (StructureStart.placeInChunk),
plain chests with a loot table get a chance to become a mimic: 1 in
template_chest_chance (10) per chest, at most max_mimics_per_structure
(3) per structure. The picked chest gets Mimic's marker block on top,
flagged as forced so Mimic doesn't roll its own chance again. Counts
and forced markers are saved per dimension, since a structure is
generated chunk by chunk, across threads and sessions.
- Important chests never become mimics: when a marker ticks, the chest
below is checked. It is important if its loot table can give an
important item (End Remastered eyes, KubeJS quest items, the
cartographer's quill), directly, through a referenced table or tag, or
through a global loot modifier, or if it is in important_loot_tables
(tables changed by LootJS scripts). This also protects vanilla Mimic
chests such as the Desert Pyramid ones (Old Eye). The analysis reads
the active datapacks on world start and /reload, and writes the list
to logs/bteopt_important_loot_tables.txt.
- Settings in config/bte_optimization_fixes-mimics.json (created with
defaults): excluded_structures, template_chest_chance,
max_mimics_per_structure, important_namespaces, important_items,
important_loot_tables.
Tested on seed 670513265704819556: Desert Pyramid keeps its 4 chests,
Illager Corsair keeps its Black Eye chest, Bandit Towers get exactly 3
mimics instead of one per chest.
This mod has no additional files