Camas/mods/give_initial_stuff/init.lua

18 lines
383 B
Lua
Raw Normal View History

2015-09-01 17:15:24 +02:00
--
-- Gives initial stuff
-- By Kaadmy, for Pixture
--
2015-10-05 00:13:15 +02:00
local giveme = minetest.setting_getbool("give_initial_stuff")
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)