tomato.lua 492 B

123456789101112131415161718192021222324
  1. farming.register_plant("farming:tomato", {
  2. description = "Tomato Seed",
  3. inventory_image = "farming_tomato_seed.png",
  4. steps = 8,
  5. minlight = 10,
  6. fertility = {"grassland"},
  7. })
  8. -- Override drop
  9. minetest.override_item("farming:tomato_8", {
  10. drop = "farming:tomato 5"
  11. })
  12. minetest.register_craft({
  13. type = "shapeless",
  14. output = "farming:seed_tomato",
  15. recipe = {"farming:tomato"}
  16. })
  17. -- make carrot eatable
  18. minetest.override_item("farming:tomato", {
  19. on_use = minetest.item_eat(1),
  20. })