Add notice in the minimal game
authorPerttu Ahola <celeron55@gmail.com>
Wed, 25 Jul 2012 14:10:31 +0000 (17:10 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Wed, 25 Jul 2012 14:10:31 +0000 (17:10 +0300)
games/minimal/mods/default/init.lua

index 133b9ed2287c446563b43853a8fc18d83bab936e..ce7f01def0a9ebd8b80c9c36d9ac0079e3cf07cb 100644 (file)
@@ -14,6 +14,14 @@ default = {}
 -- Load other files
 dofile(minetest.get_modpath("default").."/mapgen.lua")
 
+-- Set a noticeable inventory formspec for players
+minetest.register_on_joinplayer(function(player)
+       local cb = function(player)
+               minetest.chat_send_player(player:get_player_name(), "This is the [minimal] \"Minimal Development Test\" game. Use [minetest_game] for the real thing.")
+       end
+       minetest.after(2.0, cb, player)
+end)
+
 --
 -- Tool definition
 --