mirror of
git://repo.or.cz/tsm_mines.git
synced 2025-01-09 17:50:18 +01:00
Add farming as optional dependency
This commit is contained in:
parent
1b2604c4e7
commit
87019e5343
@ -1 +1,2 @@
|
|||||||
default
|
default
|
||||||
|
farming?
|
||||||
|
30
init.lua
30
init.lua
@ -36,16 +36,26 @@ local ids = {
|
|||||||
dummy = minetest.get_content_id("tsm_mines:dummy")
|
dummy = minetest.get_content_id("tsm_mines:dummy")
|
||||||
}
|
}
|
||||||
|
|
||||||
local chest_stuff = {
|
if(minetest.get_modpath("farming")~=nil) then
|
||||||
{name="default:apple", max = 3},
|
local chest_stuff = {
|
||||||
{name="farming:bread", max = 3},
|
{name="default:apple", max = 3},
|
||||||
{name="default:steel_ingot", max = 2},
|
{name="farming:bread", max = 3},
|
||||||
{name="default:gold_ingot", max = 2},
|
{name="default:steel_ingot", max = 2},
|
||||||
{name="default:diamond", max = 1},
|
{name="default:gold_ingot", max = 2},
|
||||||
{name="default:pick_steel", max = 1},
|
{name="default:diamond", max = 1},
|
||||||
{name="default:pick_diamond", max = 1}
|
{name="default:pick_steel", max = 1},
|
||||||
|
{name="default:pick_diamond", max = 1}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
local chest_stuff = {
|
||||||
|
{name="default:apple", max = 3},
|
||||||
|
{name="default:steel_ingot", max = 2},
|
||||||
|
{name="default:gold_ingot", max = 2},
|
||||||
|
{name="default:diamond", max = 1},
|
||||||
|
{name="default:pick_steel", max = 1},
|
||||||
|
{name="default:pick_diamond", max = 1}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
local function rotate_torch(pos)
|
local function rotate_torch(pos)
|
||||||
minetest.after(8, function()
|
minetest.after(8, function()
|
||||||
|
Loading…
Reference in New Issue
Block a user