summaryrefslogtreecommitdiff
path: root/data/mods/give_initial_stuff/init.lua
blob: 9cf6b51b55180217e085d92aeaf1a3222389b164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
minetest.register_on_newplayer(function(player)
	print("on_newplayer")
	if minetest.setting_getbool("give_initial_stuff") then
		print("giving give_initial_stuff to player")
		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)