axinite/farming.lua
2018-03-16 23:23:17 +00:00

26 lines
528 B
Lua

---- Carrotes
farming.register_plant("farming:carrot", {
description = "Carrot seed",
inventory_image = "farming_carrot_seed.png",
steps = 8,
minlight = 13,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4},
})
minetest.override_item("farming:carrot", {
description = "Carrot",
on_use = minetest.item_eat(2),
})
minetest.override_item("default:dry_shrub", {drop = {
max_items = 1,
items = {
{items = {'farming:seed_carrot'},rarity = 8},
{items = {'default:dry_shrub'}},
}
}})