22 lines
1.3 KiB
Lua
22 lines
1.3 KiB
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_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', 'xdecor:crafting_guide 1')
|
|
player:get_inventory():add_item('main', 'magical_potion:fly_small 2')
|
|
player:get_inventory():add_item('main', 'bows:bow_wood')
|
|
player:get_inventory():add_item('main', 'bows:arrow 26')
|
|
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)
|