add some console output for those who want to help

This commit is contained in:
webdesigner97 2016-02-26 11:29:54 +01:00
parent ed823d87a1
commit 666fc396c5

View File

@ -25,6 +25,7 @@ minetest.after(0, function()
-- Replace placeholders in craft recipe
local craft = marking_data.craft
local replacement = surface_name:sub(2, -1)
print("The replacement item for the craft recipe is: " .. replacement)
if craft[1][1] == "?" then craft[1][1] = replacement end
if craft[1][2] == "?" then craft[1][2] = replacement end
if craft[1][3] == "?" then craft[1][3] = replacement end
@ -44,6 +45,7 @@ minetest.after(0, function()
paramtype2 = "facedir"
})
local craft_output = nn:sub(2, -1)
print("The craft recipe is (JSON): " .. minetest.write_json(craft))
-- Register the craft for this node
minetest.register_craft({
output = craft_output,