beetroot.lua 510 B

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