From 3a8cebd84239e09fc9f7c51f8cf2f1c6adcd2752 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Mon, 8 Oct 2018 11:39:57 +0200 Subject: [PATCH] Minor changes in tomtopia code --- tomtopia/init.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tomtopia/init.lua b/tomtopia/init.lua index 0c2f2b0..b2b864a 100644 --- a/tomtopia/init.lua +++ b/tomtopia/init.lua @@ -1,4 +1,7 @@ -print("[TomTopia] Loading specific definitions for TomTopia …") +minetest.log("action", "[TomTopia] Loading …") + + +-- Custom crafting recipes minetest.register_craft({ output = 'default:gravel 1', @@ -61,10 +64,16 @@ for color,ingredients in pairs(colors_from_plants) do }) end + +-- Debug output when new blocks are generated + minetest.register_on_generated(function(minp, maxp, seed) local debug = "New block generated with minp="..(minetest.pos_to_string(minp))..", maxp="..(minetest.pos_to_string(maxp))..", seed="..seed print(debug) minetest.chat_send_all(debug) end) -print("[TomTopia] Loading specific definitions for TomTopia … done.") + +-- End + +minetest.log("action", "[TomTopia] Loaded!")