daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Jul 11th, 2012 33 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top