minetest_game/mods/give_initial_stuff/init.lua

13 lines
544 B
Lua
Raw Normal View History

2012-03-26 21:50:35 +02:00
minetest.register_on_newplayer(function(player)
2013-11-17 11:55:46 +01:00
--print("on_newplayer")
2012-03-26 21:50:35 +02:00
if minetest.setting_getbool("give_initial_stuff") then
2013-11-17 11:55:46 +01:00
minetest.log("action", "Giving initial stuff to player "..player:get_player_name())
2012-03-26 21:50:35 +02:00
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)