2017-09-18 07:19:27 -05:00
|
|
|
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())
|
2017-10-18 12:47:33 -05:00
|
|
|
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})
|
2017-09-18 07:19:27 -05:00
|
|
|
end
|
|
|
|
end)
|