Advertisement
Guest User

Untitled

a guest
Jan 12th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. === Error ===
  2. 23:15:28: ERROR[main]: ========== ERROR FROM LUA ===========
  3. 23:15:28: ERROR[main]: Failed to load and run script from
  4. 23:15:28: ERROR[main]: /home/kasutaja/minetest-0.4.3/bin/../mods/minetest/raxfood/init.lua:
  5. 23:15:28: ERROR[main]: /home/kasutaja/minetest-0.4.3/bin/../mods/minetest/raxfood/init.lua:42: '}' expected (to close '{' at line 39) near 'recipe'
  6. 23:15:28: ERROR[main]: =======END OF ERROR FROM LUA ========
  7. === Error ===
  8. =============
  9. === Code ===
  10. -- Toast +
  11. minetest.register_tool("raxfood:toast", {
  12. description = "Toast",
  13. inventory_image = "toast.png",
  14. on_use = minetest.item_eat(1, 'raxfood:halftoast'),
  15. })
  16. minetest.register_craft({
  17. output = "raxfood:wbread 10",
  18. recipe = {'raxfood:wbread'}
  19. })
  20. -- Half Toast +
  21. minetest.register_tool("raxfood:halftoast", {
  22. description = "Half toast",
  23. inventory_image = "htoast.png",
  24. on_use = minetest.item_eat(1),
  25. })
  26. -- White Bread +
  27. minetest.register_tool("raxfood:wbread", {
  28. description = "White bread",
  29. inventory_image = "wbread.png",
  30. on_use = minetest.item_eat(5, 'raxfood:hwbread')
  31. })
  32. minetest.register_craft({
  33. output = "raxfood:wbread",
  34. type = "cooking",
  35. recipe = {'raxfood:wbdough'}
  36. })
  37. -- Half White Bread +
  38. minetest.register_tool("raxfood:hwbread", {
  39. description = "Half white bread",
  40. inventory_image = "hwbread.png",
  41. on_use = minetest.item_eat(5)
  42. })
  43. -- Dough +
  44. minetest.register_craftitem("raxfood:dough", {
  45. description = "Dough",
  46. inventory_image = "dough.png",
  47. })
  48. minetest.register_craft({
  49. output = "raxfood:dough",
  50. type = "shapeless"
  51. recipe = {
  52. {'bucket:bucket_water', 'raxplants:flour'}
  53. }
  54. })
  55. -- White Bread Dough +
  56. minetest.register_craftitem("raxfood:wbdough", {
  57. description = "Dough for white bread",
  58. inventory_image = "wbdough.png",
  59. })
  60. minetest.register_craft({
  61. output = "raxfood:wbdough",
  62. recipe = {
  63. {'raxfood:dough', 'raxfood:dough', 'raxfood:dough'}
  64. }
  65. })
  66. === Code ===
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement