2015-09-01 17:15:24 +02:00
|
|
|
--
|
|
|
|
-- Gives initial stuff
|
|
|
|
-- By Kaadmy, for Pixture
|
|
|
|
--
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
local giveme = minetest.setting_getbool("give_initial_stuff")
|
2015-10-05 00:13:15 +02:00
|
|
|
|
2015-09-01 17:15:24 +02:00
|
|
|
local function give_initial_stuff(player)
|
2015-10-05 00:13:15 +02:00
|
|
|
if giveme then
|
2015-09-01 17:15:24 +02:00
|
|
|
local inv=player:get_inventory()
|
|
|
|
|
|
|
|
inv:add_item("main", "default:pick_stone")
|
2015-10-05 00:13:15 +02:00
|
|
|
inv:add_item("main", "default:torch_weak 10")
|
2015-09-01 17:15:24 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_on_newplayer(give_initial_stuff)
|
2015-10-25 02:11:35 +02:00
|
|
|
|
|
|
|
default.log("mod:give_initial_stuff", "loaded")
|