Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- === Error ===
- 23:15:28: ERROR[main]: ========== ERROR FROM LUA ===========
- 23:15:28: ERROR[main]: Failed to load and run script from
- 23:15:28: ERROR[main]: /home/kasutaja/minetest-0.4.3/bin/../mods/minetest/raxfood/init.lua:
- 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'
- 23:15:28: ERROR[main]: =======END OF ERROR FROM LUA ========
- === Error ===
- =============
- === Code ===
- -- Toast +
- minetest.register_tool("raxfood:toast", {
- description = "Toast",
- inventory_image = "toast.png",
- on_use = minetest.item_eat(1, 'raxfood:halftoast'),
- })
- minetest.register_craft({
- output = "raxfood:wbread 10",
- recipe = {'raxfood:wbread'}
- })
- -- Half Toast +
- minetest.register_tool("raxfood:halftoast", {
- description = "Half toast",
- inventory_image = "htoast.png",
- on_use = minetest.item_eat(1),
- })
- -- White Bread +
- minetest.register_tool("raxfood:wbread", {
- description = "White bread",
- inventory_image = "wbread.png",
- on_use = minetest.item_eat(5, 'raxfood:hwbread')
- })
- minetest.register_craft({
- output = "raxfood:wbread",
- type = "cooking",
- recipe = {'raxfood:wbdough'}
- })
- -- Half White Bread +
- minetest.register_tool("raxfood:hwbread", {
- description = "Half white bread",
- inventory_image = "hwbread.png",
- on_use = minetest.item_eat(5)
- })
- -- Dough +
- minetest.register_craftitem("raxfood:dough", {
- description = "Dough",
- inventory_image = "dough.png",
- })
- minetest.register_craft({
- output = "raxfood:dough",
- type = "shapeless"
- recipe = {
- {'bucket:bucket_water', 'raxplants:flour'}
- }
- })
- -- White Bread Dough +
- minetest.register_craftitem("raxfood:wbdough", {
- description = "Dough for white bread",
- inventory_image = "wbdough.png",
- })
- minetest.register_craft({
- output = "raxfood:wbdough",
- recipe = {
- {'raxfood:dough', 'raxfood:dough', 'raxfood:dough'}
- }
- })
- === Code ===
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement