Advertisement
Guest User

Untitled

a guest
Jul 11th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1.  
  2. -- THIS WORKS
  3. local minetest_register_craft = minetest.register_craft
  4. test = function (options)
  5.     minetest.log("action", "REGISTER CRAFT - "..options.output)
  6.     minetest_register_craft(options)
  7. end
  8. test({
  9.     output = 'node "item_info:sign_wall" 1',
  10.     recipe = {
  11.         {'', 'node "default:stick"', 'node "default:stick"'},
  12.         {'', 'node "default:stick"', 'node "default:stick"'},
  13.         {'', 'node "default:stick"', ''},
  14.     }
  15. })
  16.  
  17.  
  18. -- THIS FAILS
  19. local minetest_register_craft = minetest.register_craft
  20. minetest.register_craft = function (options)
  21.     minetest.log("action", "REGISTER CRAFT - "..options.output) -- << IF I DON'T OUTPUT THIS IT SEEMS TO WORK
  22.     minetest_register_craft(options)
  23. end
  24. minetest.register_craft({
  25.     output = 'node "item_info:sign_wall" 1',
  26.     recipe = {
  27.         {'', 'node "default:stick"', 'node "default:stick"'},
  28.         {'', 'node "default:stick"', 'node "default:stick"'},
  29.         {'', 'node "default:stick"', ''},
  30.     }
  31. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement