capturetheflag/mods/give_initial_stuff/init.lua

12 lines
493 B
Lua
Raw Normal View History

2015-07-16 17:44:01 +00:00
function give_initial_stuff(player)
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')
2015-07-17 17:52:11 +00:00
player:get_inventory():add_item('main', 'default:sword_steel')
2015-07-16 17:44:01 +00:00
player:get_inventory():add_item('main', 'default:torch 99')
player:get_inventory():add_item('main', 'default:cobble 99')
end
end
minetest.register_on_newplayer(give_initial_stuff)