mirror of
https://github.com/minetest-mods/ropes.git
synced 2024-11-28 02:13:43 +01:00
56 lines
981 B
Lua
56 lines
981 B
Lua
|
if not minetest.get_modpath("loot") then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
loot.register_loot({
|
||
|
weights = { generic = 200 },
|
||
|
payload = {
|
||
|
stack = ItemStack("ropes:ropesegment"),
|
||
|
min_size = 1,
|
||
|
max_size = 99,
|
||
|
},
|
||
|
})
|
||
|
|
||
|
if ropes.ropeLadderLength > 0 then
|
||
|
loot.register_loot({
|
||
|
weights = { generic = 100 },
|
||
|
payload = {
|
||
|
stack = ItemStack("ropes:ropeladder_top"),
|
||
|
min_size = 1,
|
||
|
max_size = 30,
|
||
|
},
|
||
|
})
|
||
|
end
|
||
|
|
||
|
if ropes.woodRopeBoxMaxMultiple > 0 then
|
||
|
loot.register_loot({
|
||
|
weights = { generic = 200 },
|
||
|
payload = {
|
||
|
stack = ItemStack("ropes:wood1rope_block"),
|
||
|
min_size = 1,
|
||
|
max_size = 30,
|
||
|
},
|
||
|
})
|
||
|
end
|
||
|
|
||
|
if ropes.copperRopeBoxMaxMultiple > 0 then
|
||
|
loot.register_loot({
|
||
|
weights = { generic = 100 },
|
||
|
payload = {
|
||
|
stack = ItemStack("ropes:copper1rope_block"),
|
||
|
min_size = 1,
|
||
|
max_size = 25,
|
||
|
},
|
||
|
})
|
||
|
end
|
||
|
|
||
|
if ropes.steelRopeBoxMaxMultiple > 0 then
|
||
|
loot.register_loot({
|
||
|
weights = { generic = 50 },
|
||
|
payload = {
|
||
|
stack = ItemStack("ropes:steel1rope_block"),
|
||
|
min_size = 1,
|
||
|
max_size = 20,
|
||
|
},
|
||
|
})
|
||
|
end
|