Elkien3 287ff7253e tweak give_inital_stuff
players will not get a wiki and be sent to 0,0,0
2017-10-18 12:47:33 -05:00

12 lines
596 B
Lua

minetest.register_on_newplayer(function(player)
--print("on_newplayer")
if minetest.setting_getbool("give_initial_stuff") then
minetest.log("action", "Giving initial stuff to player "..player:get_player_name())
player:get_inventory():add_item('main', 'default:pick_stone')
player:get_inventory():add_item('main', 'xdecor:crafting_guide')
player:get_inventory():add_item('main', 'default:torch')
player:get_inventory():add_item('main', 'default:papyrus 8')
player:get_inventory():add_item('main', 'wiki:wiki')
player:setpos({x=0,y=0,z=0})
end
end)