Add wild carrot to farm before you can obtain domestic carrots
67
init.lua
@ -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", ""},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
BIN
textures/morefarming_wild_carrot.png
Normal file
After Width: | Height: | Size: 186 B |
BIN
textures/morefarming_wild_carrot_1.png
Normal file
After Width: | Height: | Size: 128 B |
BIN
textures/morefarming_wild_carrot_2.png
Normal file
After Width: | Height: | Size: 135 B |
BIN
textures/morefarming_wild_carrot_3.png
Normal file
After Width: | Height: | Size: 141 B |
BIN
textures/morefarming_wild_carrot_4.png
Normal file
After Width: | Height: | Size: 150 B |
BIN
textures/morefarming_wild_carrot_5.png
Normal file
After Width: | Height: | Size: 163 B |
BIN
textures/morefarming_wild_carrot_6.png
Normal file
After Width: | Height: | Size: 174 B |
BIN
textures/morefarming_wild_carrot_7.png
Normal file
After Width: | Height: | Size: 188 B |
BIN
textures/morefarming_wild_carrot_8.png
Normal file
After Width: | Height: | Size: 201 B |
BIN
textures/morefarming_wild_carrot_seed.png
Normal file
After Width: | Height: | Size: 160 B |