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
minetest.override_item("moreflowers:wild_carrot",
{
-- Wild carrot
minetest.override_item("moreflowers:wild_carrot", {
drop = {
max_items = 1,
items = {
{ items = {"morefarming:seed_carrot"}, rarity = 8},
{ items = {"morefarming:seed_wild_carrot"}, rarity = 12},
{ 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",
paramtype2 = "meshoptions",
inventory_image = "morefarming_carrot_seed.png",
@ -22,8 +46,7 @@ farming.register_plant("morefarming:carrot",
place_param2 = 3,
})
minetest.override_item("morefarming:carrot",
{
minetest.override_item("morefarming:carrot", {
on_use = minetest.item_eat(4)
})
@ -32,7 +55,7 @@ minetest.register_craftitem("morefarming:carrot_gold", {
description = "Golden Carrot",
inventory_image = "morefarming_carrot_gold.png",
on_use = minetest.item_eat(6),
})
})
minetest.register_craft({
output = "morefarming:carrot_gold",
@ -41,4 +64,4 @@ minetest.register_craft({
{"default:gold_lump", "morefarming:carrot", "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