1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

Re-implement give_initial_stuff

This commit is contained in:
Perttu Ahola 2011-11-26 03:49:46 +02:00
parent 57a2bd056c
commit 08c9b6037d
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,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:add_to_inventory('ToolItem "SteelPick" 0')
player:add_to_inventory('NodeItem "torch" 99')
player:add_to_inventory('ToolItem "SteelAxe" 0')
player:add_to_inventory('ToolItem "SteelShovel" 0')
player:add_to_inventory('NodeItem "cobble" 99')
end
end)