aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-26 03:49:46 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:53 +0200
commit08c9b6037dd671cf47a31f78176594dd49a24b33 (patch)
tree43e73efd219f8dd98a5a708fbb5b38ce73303422 /data
parent57a2bd056c6c0e61cd26490a2ca653f5720d60ea (diff)
downloadminetest-08c9b6037dd671cf47a31f78176594dd49a24b33.tar.gz
minetest-08c9b6037dd671cf47a31f78176594dd49a24b33.tar.bz2
minetest-08c9b6037dd671cf47a31f78176594dd49a24b33.zip
Re-implement give_initial_stuff
Diffstat (limited to 'data')
-rw-r--r--data/mods/give_initial_stuff/init.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/data/mods/give_initial_stuff/init.lua b/data/mods/give_initial_stuff/init.lua
new file mode 100644
index 000000000..bc99e2149
--- /dev/null
+++ b/data/mods/give_initial_stuff/init.lua
@@ -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)
+