Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- THIS WORKS
- local minetest_register_craft = minetest.register_craft
- test = function (options)
- minetest.log("action", "REGISTER CRAFT - "..options.output)
- minetest_register_craft(options)
- end
- test({
- output = 'node "item_info:sign_wall" 1',
- recipe = {
- {'', 'node "default:stick"', 'node "default:stick"'},
- {'', 'node "default:stick"', 'node "default:stick"'},
- {'', 'node "default:stick"', ''},
- }
- })
- -- THIS FAILS
- local minetest_register_craft = minetest.register_craft
- minetest.register_craft = function (options)
- minetest.log("action", "REGISTER CRAFT - "..options.output) -- << IF I DON'T OUTPUT THIS IT SEEMS TO WORK
- minetest_register_craft(options)
- end
- minetest.register_craft({
- output = 'node "item_info:sign_wall" 1',
- recipe = {
- {'', 'node "default:stick"', 'node "default:stick"'},
- {'', 'node "default:stick"', 'node "default:stick"'},
- {'', 'node "default:stick"', ''},
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement