Modify minimal/give_initial_stuff to always give stuff
authorPerttu Ahola <celeron55@gmail.com>
Thu, 29 Mar 2012 10:39:18 +0000 (13:39 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 29 Mar 2012 10:39:18 +0000 (13:39 +0300)
games/minimal/mods/give_initial_stuff/init.lua

index 9cf6b51b55180217e085d92aeaf1a3222389b164..fef23c3288680c15028066effa46886c192a5683 100644 (file)
@@ -1,12 +1,15 @@
 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
+       print("[minimal] giving initial stuff to player")
+       player:get_inventory():add_item('main', 'default:pick_stone')
+       player:get_inventory():add_item('main', 'default:torch 99')
+       player:get_inventory():add_item('main', 'default:cobble 99')
+       player:get_inventory():add_item('main', 'default:wood 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:pick_wood')
+       player:get_inventory():add_item('main', 'default:pick_steel')
+       player:get_inventory():add_item('main', 'default:pick_mese')
+       player:get_inventory():add_item('main', 'default:mese 99')
+       player:get_inventory():add_item('main', 'default:water_source 99')
 end)