Add wild carrot to farm before you can obtain domestic carrots
43
init.lua
@ -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", ""},
|
||||
}
|
||||
})
|
||||
})
|
||||
|
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 |