aboutsummaryrefslogtreecommitdiff
path: root/data/mods/give_initial_stuff
diff options
context:
space:
mode:
Diffstat (limited to 'data/mods/give_initial_stuff')
-rw-r--r--data/mods/give_initial_stuff/init.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/data/mods/give_initial_stuff/init.lua b/data/mods/give_initial_stuff/init.lua
index e52784d64..9cf6b51b5 100644
--- a/data/mods/give_initial_stuff/init.lua
+++ b/data/mods/give_initial_stuff/init.lua
@@ -2,11 +2,11 @@ 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')
+ 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)