diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-26 23:18:17 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-26 23:28:19 +0300 |
commit | 862d76b6176e60c4a92a316e20b0d7665c92467a (patch) | |
tree | 2dbbdb20f900bea41d2b9748b49ffb0cde6d383a /games/minimal/mods/give_initial_stuff/init.lua | |
parent | bd9912213f459d2b86154d17a2cbbe09c4ab562e (diff) | |
download | minetest-862d76b6176e60c4a92a316e20b0d7665c92467a.tar.gz minetest-862d76b6176e60c4a92a316e20b0d7665c92467a.tar.bz2 minetest-862d76b6176e60c4a92a316e20b0d7665c92467a.zip |
Move games/minetest to games/minimal and update README.txt
Diffstat (limited to 'games/minimal/mods/give_initial_stuff/init.lua')
-rw-r--r-- | games/minimal/mods/give_initial_stuff/init.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/games/minimal/mods/give_initial_stuff/init.lua b/games/minimal/mods/give_initial_stuff/init.lua new file mode 100644 index 000000000..9cf6b51b5 --- /dev/null +++ b/games/minimal/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) + |