nalc/nalc_trm/init.lua
2018-12-12 00:22:26 +01:00

42 lines
2.3 KiB
Lua

-- Group "weapons"
local max_wear = 65535
local min_wear = 0
treasurer.register_treasure("default:sword_wood", 0.7407, 0.21, nil, {min_wear, max_wear}, "weapons")
treasurer.register_treasure("default:sword_stone", 0.7118, 0.39, nil, {min_wear, max_wear}, "weapons")
treasurer.register_treasure("default:sword_steel", 0.034, 2.97, nil, {min_wear, max_wear}, "weapons")
treasurer.register_treasure("default:sword_bronze", 0.0053, 3.05, nil, {min_wear, max_wear}, "weapons")
treasurer.register_treasure("default:sword_mese", 0.0014, 4.09, nil, {min_wear, max_wear}, "weapons")
treasurer.register_treasure("default:sword_diamond", 0.0011, 4.67, nil, {min_wear, max_wear}, "weapons")
treasurer.register_treasure("moreores:sword_silver", 0.003, 2.45, nil, {min_wear, max_wear}, "weapons")
treasurer.register_treasure("moreores:sword_mithril", 0.0008, 8.18, nil, {min_wear, max_wear}, "weapons")
treasurer.register_treasure("nalc:sword_gold", 0.0018, 2.86, nil, {min_wear, max_wear}, "weapons")
treasurer.register_treasure("nalc:sword_nyan", 0.0004, 4.41, nil, {min_wear, max_wear}, "weapons")
treasurer.register_treasure("mobs:dungeon_master_sword", 0.0008, 8.18, nil, {min_wear, max_wear}, "weapons")
-- Group "nether"
treasurer.register_treasure("nether:sword_netherrack", 0.7118, 0.59, nil, {min_wear, max_wear}, "nether")
treasurer.register_treasure("nether:sword_netherrack_blue", 0.034, 3.46, nil, {min_wear, max_wear}, "nether")
treasurer.register_treasure("nether:sword_white", 0.0004, 6.43, nil, {min_wear, max_wear}, "nether")
-- Group "armor"
for _,material in ipairs(
{
{"wood", 0.7407, 1},
{"cactus", 0.7407, 1},
{"steel", 0.034, 2},
{"hardenedleather", 0.0197, 3},
{"bronze", 0.0053, 4},
{"gold", 0.0018, 5},
{"diamond", 0.0011, 6},
{"mithril", 0.0008, 7},
{"reinforcedleather", 0.0007, 8},
{"blackmithril", 0.0004, 9}
}) do
treasurer.register_treasure("3d_armor:".."boots_"..material[1], material[2], material[3], nil, {min_wear, max_wear}, "armor")
treasurer.register_treasure("3d_armor:".."chestplate_"..material[1], material[2], material[3], nil, {min_wear, max_wear}, "armor")
treasurer.register_treasure("3d_armor:".."helmet_"..material[1], material[2], material[3], nil, {min_wear, max_wear}, "armor")
treasurer.register_treasure("3d_armor:".."leggings_"..material[1], material[2], material[3], nil, {min_wear, max_wear}, "armor")
end