Add wild carrot to farm before you can obtain domestic carrots

This commit is contained in:
sys4-fr 2017-02-21 22:51:44 +01:00
parent a797e8f42d
commit e1646cb49b
11 changed files with 45 additions and 22 deletions

View File

@ -1,16 +1,40 @@
-- carrot -- Wild carrot
minetest.override_item("moreflowers:wild_carrot", minetest.override_item("moreflowers:wild_carrot", {
{
drop = { drop = {
max_items = 1, max_items = 1,
items = { items = {
{ items = {"morefarming:seed_carrot"}, rarity = 8}, { items = {"morefarming:seed_wild_carrot"}, rarity = 12},
{ items = {"moreflowers:wild_carrot"}}, { items = {"moreflowers:wild_carrot"}},
} }
}}) }})
farming.register_plant("morefarming:carrot", farming.register_plant("morefarming:wild_carrot", {
{ description = "Wild Carrot seed",
inventory_image = "morefarming_wild_carrot_seed.png",
steps = 8,
minlight = 13,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4},
})
minetest.override_item("morefarming:wild_carrot_8", {
drop = {
max_items = 3,
items = {
{ items = {"morefarming:seed_wild_carrot"}, rarity = 6},
{ items = {"morefarming:seed_carrot"}, rarity = 8},
{ items = {"morefarming:wild_carrot"}, rarity = 2},
{ items = {"moreflowers:wild_carrot"}},
}
}})
minetest.override_item("morefarming:wild_carrot", {
on_use = minetest.item_eat(1)
})
-- Carrot
farming.register_plant("morefarming:carrot", {
description = "Carrot seed", description = "Carrot seed",
paramtype2 = "meshoptions", paramtype2 = "meshoptions",
inventory_image = "morefarming_carrot_seed.png", inventory_image = "morefarming_carrot_seed.png",
@ -20,25 +44,24 @@ farming.register_plant("morefarming:carrot",
fertility = {"grassland"}, fertility = {"grassland"},
groups = {flammable = 4}, groups = {flammable = 4},
place_param2 = 3, place_param2 = 3,
}) })
minetest.override_item("morefarming:carrot", minetest.override_item("morefarming:carrot", {
{
on_use = minetest.item_eat(4) on_use = minetest.item_eat(4)
}) })
-- golden carrot -- golden carrot
minetest.register_craftitem("morefarming:carrot_gold", { minetest.register_craftitem("morefarming:carrot_gold", {
description = "Golden Carrot", description = "Golden Carrot",
inventory_image = "morefarming_carrot_gold.png", inventory_image = "morefarming_carrot_gold.png",
on_use = minetest.item_eat(6), on_use = minetest.item_eat(6),
}) })
minetest.register_craft({ minetest.register_craft({
output = "morefarming:carrot_gold", output = "morefarming:carrot_gold",
recipe = { recipe = {
{"", "default:gold_lump", ""}, {"", "default:gold_lump", ""},
{"default:gold_lump", "morefarming:carrot", "default:gold_lump"}, {"default:gold_lump", "morefarming:carrot", "default:gold_lump"},
{"", "default:gold_lump", ""}, {"", "default:gold_lump", ""},
} }
}) })

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B