baits.lua 518 B

12345678910111213141516
  1. minetest.register_craftitem("fishing:worm", {
  2. description = "Worm",
  3. inventory_image = "fishing_worm.png",
  4. groups = { fishing_bait = 1 },
  5. })
  6. -- Add worm drop to dirt drops
  7. table.insert(minetest.registered_items["default:dirt"].drop.items, { rarity = 30, items = {"fishing:worm"} })
  8. -- Make corn useable as fishing bait
  9. local expanded_groups = minetest.registered_items["farming:seed_corn"].groups
  10. expanded_groups["fishing_bait"] = 1
  11. minetest.override_item("farming:seed_corn", {
  12. groups = expanded_groups
  13. })