1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-25 17:08:48 -05:00
minetest/data/mods/give_initial_stuff/init.lua

13 lines
421 B
Lua
Raw Normal View History

2011-11-25 20:49:46 -05:00
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('tool "SteelPick" 0')
player:add_to_inventory('node "torch" 99')
player:add_to_inventory('tool "SteelAxe" 0')
player:add_to_inventory('tool "SteelShovel" 0')
player:add_to_inventory('node "cobble" 99')
2011-11-25 20:49:46 -05:00
end
end)