Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. #######
  2. SCRIPT
  3. #######
  4. same as http://pastebin.com/W9Jxbcib, but with the line
  5. print(dump(minetest.get_all_craft_recipes('funnystone:funnystone')))
  6. instead of the other dump functions.
  7.  
  8. #######
  9. OLD
  10. #######
  11. {
  12. {
  13. type = "normal",
  14. width = 3,
  15. output = "funnystone:funnystone 0",
  16. items = {
  17. "group:wood"
  18. }
  19. },
  20. {
  21. type = "normal",
  22. width = 3,
  23. output = "funnystone:funnystone",
  24. items = {
  25. "group:cobble",
  26. "funnystone:funnyblock"
  27. }
  28. },
  29. {
  30. type = "normal",
  31. width = 3,
  32. output = "funnystone:funnystone",
  33. items = {
  34. "group:wood"
  35. }
  36. }
  37. }
  38.  
  39. #######
  40. NEW
  41. #######
  42. {
  43. {
  44. type = "normal",
  45. width = 3,
  46. output = "funnystone:funnystone",
  47. items = {
  48. "group:cobble",
  49. "funnystone:funnyblock"
  50. }
  51. },
  52. {
  53. type = "normal",
  54. width = 3,
  55. output = "funnystone:funnystone",
  56. items = {
  57. "group:wood"
  58. }
  59. }
  60. }
  61.  
  62. ######
  63. RESULT
  64. ######
  65.  
  66. NEW behaviour doesn't add crafts when there is an exactly the same craft input. Stdouts from first run (see http://pastebin.com/W9Jxbcib) were interpreted wrongly, it was just a coincidence the NEW version was right.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement