Minor changes in tomtopia code
This commit is contained in:
parent
ae3dfffd6e
commit
3a8cebd842
@ -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!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user