fishes.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. -- Fish?
  2. minetest.register_craftitem("fishing:tuna", {
  3. description = "Tuna",
  4. inventory_image = "fishing_tuna.png",
  5. wield_scale = { x = 2, y = 2, z = 1 },
  6. on_use = minetest.item_eat(2),
  7. groups = { fishing_catch = 1 }
  8. })
  9. minetest.register_craftitem("fishing:tuna_cooked", {
  10. description = "Cooked Tuna",
  11. inventory_image = "fishing_tuna_cooked.png",
  12. on_use = minetest.item_eat(4),
  13. })
  14. minetest.register_craft({
  15. type = "cooking",
  16. output = "fishing:tuna_cooked",
  17. recipe = "fishing:tuna",
  18. cooktime = 10,
  19. })
  20. -- Salmon
  21. minetest.register_craftitem("fishing:salmon", {
  22. description = "Salmon",
  23. inventory_image = "fishing_salmon.png",
  24. on_use = minetest.item_eat(2),
  25. groups = { fishing_catch = 1 }
  26. })
  27. minetest.register_craftitem("fishing:salmon_cooked", {
  28. description = "Cooked Salmon",
  29. inventory_image = "fishing_salmon_cooked.png",
  30. on_use = minetest.item_eat(4),
  31. })
  32. minetest.register_craft({
  33. type = "cooking",
  34. output = "fishing:salmon_cooked",
  35. recipe = "fishing:salmon",
  36. cooktime = 10,
  37. })
  38. -- Clownfish
  39. minetest.register_craftitem("fishing:clownfish", {
  40. description = "Clownfish",
  41. inventory_image = "fishing_clownfish.png",
  42. on_use = minetest.item_eat(1),
  43. groups = { fishing_catch = 1 }
  44. })