Camas/mods/give_initial_stuff/init.lua

19 lines
431 B
Lua
Raw Normal View History

2015-09-01 17:15:24 +02:00
--
-- Gives initial stuff
-- By Kaadmy, for Pixture
--
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
minetest.register_on_newplayer(give_initial_stuff)
2015-10-25 02:11:35 +02:00
default.log("mod:give_initial_stuff", "loaded")