blert2112 wrote:One problem may be that you can't register stuff in a minetest.after(). All registering must be done at load time not after.
blert2112 wrote:Huh, imagine that.
Possibly try minetest.serialize to print the craft table, instead of write_json(). The API states write_json() is stricter than the lua table, maybe it's having issues with the "_".?
webdesigner97 wrote:Isn't this what I'm doing here? Every iteration step, it copies the craft from the definition table into craft and does the replacement. Or maybe it#s getting to late and I don't see it... I'll try again tomorrow...
local craft = table.copy(marking_data.craft)
blert2112 wrote:Byakuren is correct. For proof just print 'craft' right after you "create" it (line 26), you will see it.
Try this...Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local craft = table.copy(marking_data.craft)
@ Byakuren... I see your name and I think "Byakuya" :)
Users browsing this forum: No registered users and 6 guests