aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-29 13:39:18 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-03-29 13:39:18 +0300
commit072c265c301d3336203b77b8b1651fdacf3a7682 (patch)
treea1303f8f1625d40710b127ab0ee26e97eee9f4c5
parent440e9cdbef19d154f134a85c7e2601f0aff63459 (diff)
downloadminetest-072c265c301d3336203b77b8b1651fdacf3a7682.tar.gz
minetest-072c265c301d3336203b77b8b1651fdacf3a7682.tar.bz2
minetest-072c265c301d3336203b77b8b1651fdacf3a7682.zip
Modify minimal/give_initial_stuff to always give stuff
-rw-r--r--games/minimal/mods/give_initial_stuff/init.lua21
1 files changed, 12 insertions, 9 deletions
diff --git a/games/minimal/mods/give_initial_stuff/init.lua b/games/minimal/mods/give_initial_stuff/init.lua
index 9cf6b51b5..fef23c328 100644
--- a/games/minimal/mods/give_initial_stuff/init.lua
+++ b/games/minimal/mods/give_initial_stuff/init.lua
@@ -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)