From 6779036d25e460ca5e8c6d290772e78c3277ccfc Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 25 Mar 2012 20:29:56 +0300 Subject: Make server world selection not brain dead and use gameid 'minetest' instead of 'mesetint' --- games/minetest/mods/give_initial_stuff/init.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 games/minetest/mods/give_initial_stuff/init.lua (limited to 'games/minetest/mods/give_initial_stuff/init.lua') diff --git a/games/minetest/mods/give_initial_stuff/init.lua b/games/minetest/mods/give_initial_stuff/init.lua new file mode 100644 index 000000000..9cf6b51b5 --- /dev/null +++ b/games/minetest/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) + -- cgit v1.2.3