our initial stuff

This commit is contained in:
tchncs 2015-12-26 21:50:56 +01:00
parent f8675b068f
commit 085cd9f088

View File

@ -1,12 +1,21 @@
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_steel')
player:get_inventory():add_item('main', 'default:torch 99')
player:get_inventory():add_item('main', 'default:axe_steel')
player:get_inventory():add_item('main', 'default:shovel_steel')
player:get_inventory():add_item('main', 'default:cobble 99')
end
end)
--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_steel')
player:get_inventory():add_item('main', 'default:axe_steel')
player:get_inventory():add_item('main', 'default:torch 99')
player:get_inventory():add_item('main', 'default:chest_locked 1')
player:get_inventory():add_item('main', 'craft_guide:sign_wall 1')
player:get_inventory():add_item('main', '')
player:get_inventory():add_item('main', '')
player:get_inventory():add_item('main', '')
player:get_inventory():add_item('main', '3d_armor:helmet_steel')
player:get_inventory():add_item('main', '3d_armor:chestplate_steel')
player:get_inventory():add_item('main', '3d_armor:leggings_steel')
player:get_inventory():add_item('main', '3d_armor:boots_steel')
player:get_inventory():add_item('main', 'shields:shield_wood')
end
end)