#Chance that a generated chest receives a lock at all. The default 0.7 leaves roughly three in #ten chests bare, so locks stay worth finding. 1.0 locks every chest; 0.0 disables lock generation. # Default: 0.7 # Range: 0.0 ~ 1.0 "Chest Lock Chance" = 0.35 #Chance to randomly enchant a generated lock during world generation. Set to 0 to disable # Default: 0.4 # Range: 0.0 ~ 1.0 "Generation Enchant Chance" = 0.4 #Items that can be generated as locks (must be instance of LockItem in code!) #NOTE: 'locks:steel_lock' is deliberately NOT in this default list. The steel lock is not part of the #natural progression (it needs a steel provider from another mod), so it never spawns on a generated #chest. Add it here explicitly if you want it to. "Generated Locks" = ["locks:wood_lock", "locks:copper_lock", "locks:iron_lock", "locks:gold_lock", "locks:diamond_lock", "locks:netherite_lock"] #WARNING: THE AMOUNT OF NUMBERS SHOULD BE EQUAL TO THE AMOUNT OF GENERATED LOCK ITEMS!!! #The relative probability that the corresponding lock item will be generated on a chest. Higher number = higher chance to generate "Generated Lock Chances" = [5, 4, 3, 1, 1, 0] #Chance (0.0-1.0) that a chest keeps the highest tier its loot value qualifies for, one value per #entry in 'Generated Locks' (same order). Only used by loot-scaled generation; the weighted 'Generated #Lock Chances' list is the fallback when loot scaling is off or the loot value is unknown. #On a failed roll the chest drops to the next tier down and rolls again, so a value that qualifies for #diamond is not guaranteed to get one — the tier is merely POSSIBLE. Richer chests still skew high, #because a chest only ever rolls tiers it actually qualifies for. #A value of 1.0 makes that tier certain once reached; 0.0 removes it from the roll entirely. #Netherite is deliberately NOT 1.0: it is the End's signature reward and still the most likely roll #there, but an end city chest should be able to come up with any tier, not just netherite. #Defaults: wood=1.0, copper=0.85, iron=0.7, gold=0.55, diamond=0.35, netherite=0.5. #Resulting spread: a very rich overworld chest (diamond is the top eligible tier) comes out diamond 35%, #gold 36%, iron 20%, copper 7%, wood 1%; a median chest is iron 70% / copper 25% / wood 5%; a village #chest is always wood; an end city chest (worth 22.2) is netherite 50%, diamond 18%, gold 18%, iron #10%, copper 4%, wood 1%. "Lock Tier Chances" = [1.0, 0.85, 0.7, 0.55, 0.35, 0.5] #Randomize lock IDs and combinations when loading them from a structure file. Randomization works just like during world generation "Randomize Loaded Locks" = false #Override built-in lock stats without datapacks. Set any value to -1 to use the JSON default. #'Pick Wear' is how much durability this lock takes off a lock pick on every wrong pin. It is the #main difficulty knob alongside 'Length', since a pick breaks only when its durability runs out. ["Lock Stats"] ["Lock Stats"."Wood Lock"] #Number of pins (1-20). JSON default: 5. Set to -1 to use default. # Default: -1 # Range: -1 ~ 20 Length = -1 #Enchantability (1-50). JSON default: 15. # Default: -1 # Range: -1 ~ 50 "Enchantment Value" = -1 #Explosion resistance (0-1000). JSON default: 4. # Default: -1 # Range: -1 ~ 1000 Resistance = -1 #Lock pick durability a wrong pin costs on this lock (1-1000). JSON default: 1. # Default: -1 # Range: -1 ~ 1000 "Pick Wear" = -1 ["Lock Stats"."Copper Lock"] #Number of pins (1-20). JSON default: 6. Set to -1 to use default. # Default: -1 # Range: -1 ~ 20 Length = -1 #Enchantability (1-50). JSON default: 16. # Default: -1 # Range: -1 ~ 50 "Enchantment Value" = -1 #Explosion resistance (0-1000). JSON default: 8. # Default: -1 # Range: -1 ~ 1000 Resistance = -1 #Lock pick durability a wrong pin costs on this lock (1-1000). JSON default: 2. # Default: -1 # Range: -1 ~ 1000 "Pick Wear" = -1 ["Lock Stats"."Iron Lock"] #Number of pins (1-20). JSON default: 7. Set to -1 to use default. # Default: -1 # Range: -1 ~ 20 Length = -1 #Enchantability (1-50). JSON default: 14. # Default: -1 # Range: -1 ~ 50 "Enchantment Value" = -1 #Explosion resistance (0-1000). JSON default: 12. # Default: -1 # Range: -1 ~ 1000 Resistance = -1 #Lock pick durability a wrong pin costs on this lock (1-1000). JSON default: 3. # Default: -1 # Range: -1 ~ 1000 "Pick Wear" = -1 ["Lock Stats"."Steel Lock"] #Number of pins (1-20). JSON default: 9. Set to -1 to use default. # Default: -1 # Range: -1 ~ 20 Length = -1 #Enchantability (1-50). JSON default: 12. # Default: -1 # Range: -1 ~ 50 "Enchantment Value" = -1 #Explosion resistance (0-1000). JSON default: 20. # Default: -1 # Range: -1 ~ 1000 Resistance = -1 #Lock pick durability a wrong pin costs on this lock (1-1000). JSON default: 6. # Default: -1 # Range: -1 ~ 1000 "Pick Wear" = -1 ["Lock Stats"."Gold Lock"] #Number of pins (1-20). JSON default: 6. Set to -1 to use default. # Default: -1 # Range: -1 ~ 20 Length = -1 #Enchantability (1-50). JSON default: 22. # Default: -1 # Range: -1 ~ 50 "Enchantment Value" = -1 #Explosion resistance (0-1000). JSON default: 6. # Default: -1 # Range: -1 ~ 1000 Resistance = -1 #Lock pick durability a wrong pin costs on this lock (1-1000). JSON default: 2. # Default: -1 # Range: -1 ~ 1000 "Pick Wear" = -1 ["Lock Stats"."Diamond Lock"] #Number of pins (1-20). JSON default: 11. Set to -1 to use default. # Default: -1 # Range: -1 ~ 20 Length = -1 #Enchantability (1-50). JSON default: 10. # Default: -1 # Range: -1 ~ 50 "Enchantment Value" = -1 #Explosion resistance (0-1000). JSON default: 100. # Default: -1 # Range: -1 ~ 1000 Resistance = -1 #Lock pick durability a wrong pin costs on this lock (1-1000). JSON default: 12. # Default: -1 # Range: -1 ~ 1000 "Pick Wear" = -1 ["Lock Stats"."Netherite Lock"] #Number of pins (1-20). JSON default: 14. Set to -1 to use default. # Default: -1 # Range: -1 ~ 20 Length = -1 #Enchantability (1-50). JSON default: 8. # Default: -1 # Range: -1 ~ 50 "Enchantment Value" = -1 #Explosion resistance (0-1000). JSON default: 200. # Default: -1 # Range: -1 ~ 1000 Resistance = -1 #Lock pick durability a wrong pin costs on this lock (1-1000). JSON default: 24. # Default: -1 # Range: -1 ~ 1000 "Pick Wear" = -1 #Override built-in lockpick stats without datapacks. Set any value to -1.0 to use the JSON default. #Strength decides which locks a pick may attempt at all (the Complexity gate). Since 1.7.3 it no #longer affects how fast a pick wears out - that is the lock's 'Pick Wear' above. #Durability cannot be set here: it is fixed when the item is registered, before this file is read. #Set it in config/locks/lockpick_types/.json instead. ["Lockpick Stats"] #Strength (0.01-10.0). JSON default: 0.2. Set to -1.0 to use default. # Default: -1.0 # Range: -1.0 ~ 10.0 "Wood Lockpick Strength" = -1.0 #Strength (0.01-10.0). JSON default: 0.28. # Default: -1.0 # Range: -1.0 ~ 10.0 "Copper Lockpick Strength" = -1.0 #Strength (0.01-10.0). JSON default: 0.35. # Default: -1.0 # Range: -1.0 ~ 10.0 "Iron Lockpick Strength" = -1.0 #Strength (0.01-10.0). JSON default: 0.7. # Default: -1.0 # Range: -1.0 ~ 10.0 "Steel Lockpick Strength" = -1.0 #Strength (0.01-10.0). JSON default: 0.25. # Default: -1.0 # Range: -1.0 ~ 10.0 "Gold Lockpick Strength" = -1.0 #Strength (0.01-10.0). JSON default: 0.85. # Default: -1.0 # Range: -1.0 ~ 10.0 "Diamond Lockpick Strength" = -1.0 #Strength (0.01-10.0). JSON default: 0.95. # Default: -1.0 # Range: -1.0 ~ 10.0 "Netherite Lockpick Strength" = -1.0 #When enabled, lock tier is determined by the value of a chest's loot table contents instead of random weighted selection. Chests below the minimum value threshold get no lock at all. ["Loot-Scaled Locks"] #Enable loot-value-based lock tier selection. When disabled, the random weighted system (Generated Locks + Generated Lock Chances) is used instead "Enable Loot-Scaled Locks" = true #Base value assigned to each item before multipliers # Default: 1.0 # Range: 0.01 ~ 1000.0 "Default Item Value" = 1.0 #Value multiplier added per enchantment level on an item (e.g. 0.25 means Sharpness V adds 1.25x) # Default: 0.25 # Range: 0.0 ~ 10.0 "Enchantment Value Bonus" = 0.25 #Value multiplier for COMMON rarity items # Default: 1.0 # Range: 0.01 ~ 100.0 "Common Rarity Multiplier" = 1.0 #Value multiplier for UNCOMMON rarity items # Default: 1.5 # Range: 0.01 ~ 100.0 "Uncommon Rarity Multiplier" = 1.5 #Value multiplier for RARE rarity items # Default: 2.5 # Range: 0.01 ~ 100.0 "Rare Rarity Multiplier" = 2.5 #Value multiplier for EPIC rarity items # Default: 5.0 # Range: 0.01 ~ 100.0 "Epic Rarity Multiplier" = 5.0 #Minimum loot value thresholds for each lock in the 'Generated Locks' list (same order). #WARNING: THE AMOUNT OF NUMBERS SHOULD BE EQUAL TO THE AMOUNT OF GENERATED LOCK ITEMS!!! #A chest's total loot value is compared against these thresholds and it receives the highest tier it qualifies for. #If the value is below the lowest threshold, NO lock is generated for that chest. #NOTE: these defaults were placed against the measured loot-value distribution of vanilla 1.21.1 #(56 chest tables: min 0.0, p25 4.9, median 9.8, p75 15.9, p90 22.2, max 50.4). Re-space these against #your own pack's economy when you add or remove a tier. #The netherite value MUST stay at or below ~22: 'chests/end_city_treasure' (22.2) is the only #End chest table, and the netherite lock is End-gated, so a higher threshold makes the netherite #lock impossible to generate anywhere. #The diamond value is the Overworld's effective TOP tier: a chest that would have earned netherite #falls back to diamond outside the End, so EVERY chest worth at least the diamond value gets a #diamond lock in the Overworld. Lowering it is what made diamond locks far too common; 20 leaves only #the genuinely rich tables (ruined portal, desert pyramid, shipwreck, ancient city, bastion, buried #treasure) while dungeons and mineshafts drop to gold. #Defaults: wood=2, copper=5, iron=9, gold=13, diamond=20, netherite=21. #Example - make diamond (or better) locks exclusive to high-value chests: raise the diamond/netherite #thresholds (e.g. 25 and 35) so only the richest loot tables reach them, and raise the lowest threshold #to skip locks on poor chests. With [10, 20, 35, 50, 65, 80, 140] a chest worth 90 gets diamond and one #worth 150 gets netherite, while a chest worth 8 gets no lock at all. "Loot Value Tiers" = [2.0, 5.0, 9.0, 13.0, 20.0, 21.0] #Override the base value for specific items. Format: 'modid:item_name=value'. #Items not listed here use the Default Item Value. #Useful for materials like diamonds or emeralds that have COMMON rarity but are inherently valuable. "Item Value Overrides" = ["minecraft:diamond=5.0", "minecraft:emerald=4.0", "minecraft:netherite_ingot=10.0", "minecraft:netherite_scrap=6.0", "minecraft:enchanted_golden_apple=15.0", "minecraft:totem_of_undying=12.0", "minecraft:elytra=20.0", "minecraft:heart_of_the_sea=8.0", "minecraft:golden_apple=3.0", "minecraft:ender_pearl=2.0", "minecraft:experience_bottle=2.0", "minecraft:saddle=3.0", "minecraft:name_tag=3.0", "minecraft:iron_ingot=2.0", "minecraft:gold_ingot=3.0"]