diff options
Diffstat (limited to 'share/games/mesetint/mods/give_initial_stuff/init.lua')
-rw-r--r-- | share/games/mesetint/mods/give_initial_stuff/init.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/share/games/mesetint/mods/give_initial_stuff/init.lua b/share/games/mesetint/mods/give_initial_stuff/init.lua new file mode 100644 index 000000000..9cf6b51b5 --- /dev/null +++ b/share/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) + |