mirror of
git://repo.or.cz/tsm_mines.git
synced 2025-06-28 22:46:17 +02:00
Compare commits
2 Commits
master
...
6fba7167b3
Author | SHA1 | Date | |
---|---|---|---|
6fba7167b3 | |||
f7b1babdc6 |
6
init.lua
6
init.lua
@ -6,7 +6,7 @@ if not MINE_DEEP_MIN then
|
|||||||
MINE_DEEP_MIN = -64
|
MINE_DEEP_MIN = -64
|
||||||
end
|
end
|
||||||
if not MINE_DEEP_MAX then
|
if not MINE_DEEP_MAX then
|
||||||
MINE_DEEP_MAX = -380
|
MINE_DEEP_MAX = -13800
|
||||||
end
|
end
|
||||||
if not MINE_FACTOR then
|
if not MINE_FACTOR then
|
||||||
MINE_FACTOR = 1.5
|
MINE_FACTOR = 1.5
|
||||||
@ -81,7 +81,7 @@ local function fill_chest(pos)
|
|||||||
inv:set_size("main", 8*4)
|
inv:set_size("main", 8*4)
|
||||||
local stacks = {}
|
local stacks = {}
|
||||||
if(minetest.get_modpath("treasurer") ~= nil) then
|
if(minetest.get_modpath("treasurer") ~= nil) then
|
||||||
stacks = treasurer.select_random_treasures(3,4,6,{"minetool", "food", "crafting_component"})
|
stacks = treasurer.select_random_treasures(3,4,6,{"minetool", "nourriture", "building_block", "precieux"})
|
||||||
else
|
else
|
||||||
for i=0,2,1 do
|
for i=0,2,1 do
|
||||||
local stuff = chest_stuff[math.random(1,#chest_stuff)]
|
local stuff = chest_stuff[math.random(1,#chest_stuff)]
|
||||||
@ -255,3 +255,5 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
vm:update_liquids()
|
vm:update_liquids()
|
||||||
vm:write_to_map()
|
vm:write_to_map()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
minetest.log("action", "[tsm_mines] loaded.")
|
||||||
|
Reference in New Issue
Block a user