diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-10 15:56:24 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-10 17:10:10 +0200 |
commit | c89d1cf072f4ac34cfb35eadd8c9890b3de1b922 (patch) | |
tree | 710e2764b126d6de0c528d531d24ad1653a682d2 /share/server/games/mesetint/mods/give_initial_stuff | |
parent | 9c5e422d3a5fc3784d261a1effdb94a44b84a41c (diff) | |
download | minetest-c89d1cf072f4ac34cfb35eadd8c9890b3de1b922.tar.gz minetest-c89d1cf072f4ac34cfb35eadd8c9890b3de1b922.tar.bz2 minetest-c89d1cf072f4ac34cfb35eadd8c9890b3de1b922.zip |
Initial directory structure rework
Diffstat (limited to 'share/server/games/mesetint/mods/give_initial_stuff')
-rw-r--r-- | share/server/games/mesetint/mods/give_initial_stuff/depends.txt | 2 | ||||
-rw-r--r-- | share/server/games/mesetint/mods/give_initial_stuff/init.lua | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/share/server/games/mesetint/mods/give_initial_stuff/depends.txt b/share/server/games/mesetint/mods/give_initial_stuff/depends.txt new file mode 100644 index 000000000..3a7daa1d7 --- /dev/null +++ b/share/server/games/mesetint/mods/give_initial_stuff/depends.txt @@ -0,0 +1,2 @@ +default + diff --git a/share/server/games/mesetint/mods/give_initial_stuff/init.lua b/share/server/games/mesetint/mods/give_initial_stuff/init.lua new file mode 100644 index 000000000..9cf6b51b5 --- /dev/null +++ b/share/server/games/mesetint/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: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) + |