2022-06-24 00:11:24 +00:00
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
local modpath = minetest.get_modpath(modname)
|
|
|
|
|
2022-11-11 09:35:25 +00:00
|
|
|
mcl_structures.register_structure("jungle_temple", {
|
|
|
|
place_on = { "group:grass_block", "group:dirt", "mcl_core:dirt_with_grass" },
|
2022-06-25 04:16:43 +00:00
|
|
|
fill_ratio = 0.01,
|
2022-06-24 00:11:24 +00:00
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
solid_ground = true,
|
|
|
|
make_foundation = true,
|
2022-11-11 09:35:25 +00:00
|
|
|
y_offset = function(pr) return pr:next(-3, 0) - 5 end,
|
2022-06-25 04:16:43 +00:00
|
|
|
chunk_probability = 200,
|
2022-06-24 00:11:24 +00:00
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
y_min = 1,
|
|
|
|
biomes = { "Jungle" },
|
|
|
|
sidelen = 18,
|
|
|
|
filenames = {
|
2022-11-11 09:35:25 +00:00
|
|
|
modpath .. "/schematics/mcl_structures_jungle_temple.mts",
|
|
|
|
modpath .. "/schematics/mcl_structures_jungle_temple_nice.mts",
|
2022-06-24 00:11:24 +00:00
|
|
|
},
|
2022-06-24 01:36:21 +00:00
|
|
|
loot = {
|
2022-11-11 09:35:25 +00:00
|
|
|
["mcl_chests:trapped_chest_small"] = { {
|
2022-06-24 01:36:21 +00:00
|
|
|
stacks_min = 2,
|
|
|
|
stacks_max = 6,
|
|
|
|
items = {
|
2022-11-11 09:35:25 +00:00
|
|
|
{ itemstring = "mcl_mobitems:bone", weight = 20, amount_min = 4, amount_max = 6 },
|
|
|
|
{ itemstring = "mcl_mobitems:rotten_flesh", weight = 16, amount_min = 3, amount_max = 7 },
|
2022-06-24 01:36:21 +00:00
|
|
|
{ itemstring = "mcl_core:gold_ingot", weight = 15, amount_min = 2, amount_max = 7 },
|
|
|
|
--{ itemstring = "mcl_bamboo:bamboo", weight = 15, amount_min = 1, amount_max=3 }, --FIXME BAMBOO
|
|
|
|
{ itemstring = "mcl_core:iron_ingot", weight = 15, amount_min = 1, amount_max = 5 },
|
|
|
|
{ itemstring = "mcl_core:diamond", weight = 3, amount_min = 1, amount_max = 3 },
|
|
|
|
{ itemstring = "mcl_mobitems:saddle", weight = 3, },
|
|
|
|
{ itemstring = "mcl_core:emerald", weight = 2, amount_min = 1, amount_max = 3 },
|
|
|
|
{ itemstring = "mcl_books:book", weight = 1, func = function(stack, pr)
|
2022-11-11 09:35:25 +00:00
|
|
|
mcl_enchanting.enchant_uniform_randomly(stack, { "soul_speed" }, pr)
|
2022-06-24 01:36:21 +00:00
|
|
|
end },
|
|
|
|
{ itemstring = "mcl_mobitems:iron_horse_armor", weight = 1, },
|
|
|
|
{ itemstring = "mcl_mobitems:gold_horse_armor", weight = 1, },
|
|
|
|
{ itemstring = "mcl_mobitems:diamond_horse_armor", weight = 1, },
|
|
|
|
{ itemstring = "mcl_core:apple_gold_enchanted", weight = 2, },
|
|
|
|
}
|
2022-11-11 09:35:25 +00:00
|
|
|
} }
|
2022-06-24 01:36:21 +00:00
|
|
|
}
|
2022-06-24 00:11:24 +00:00
|
|
|
})
|