Minor changes in tomtopia code

This commit is contained in:
Daniel Borchmann 2018-10-08 11:39:57 +02:00
parent ae3dfffd6e
commit 3a8cebd842
No known key found for this signature in database
GPG Key ID: 4F63DB96D45AA9C6

View File

@ -1,4 +1,7 @@
print("[TomTopia] Loading specific definitions for TomTopia …") minetest.log("action", "[TomTopia] Loading …")
-- Custom crafting recipes
minetest.register_craft({ minetest.register_craft({
output = 'default:gravel 1', output = 'default:gravel 1',
@ -61,10 +64,16 @@ for color,ingredients in pairs(colors_from_plants) do
}) })
end end
-- Debug output when new blocks are generated
minetest.register_on_generated(function(minp, maxp, seed) 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 local debug = "New block generated with minp="..(minetest.pos_to_string(minp))..", maxp="..(minetest.pos_to_string(maxp))..", seed="..seed
print(debug) print(debug)
minetest.chat_send_all(debug) minetest.chat_send_all(debug)
end) end)
print("[TomTopia] Loading specific definitions for TomTopia … done.")
-- End
minetest.log("action", "[TomTopia] Loaded!")