diff --git a/init.lua b/init.lua index 039b1c9..5e96398 100644 --- a/init.lua +++ b/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", @@ -20,25 +44,24 @@ farming.register_plant("morefarming:carrot", fertility = {"grassland"}, groups = {flammable = 4}, place_param2 = 3, - }) + }) -minetest.override_item("morefarming:carrot", - { +minetest.override_item("morefarming:carrot", { on_use = minetest.item_eat(4) - }) + }) -- golden carrot minetest.register_craftitem("morefarming:carrot_gold", { - description = "Golden Carrot", - inventory_image = "morefarming_carrot_gold.png", - on_use = minetest.item_eat(6), -}) + description = "Golden Carrot", + inventory_image = "morefarming_carrot_gold.png", + on_use = minetest.item_eat(6), + }) minetest.register_craft({ - output = "morefarming:carrot_gold", - recipe = { - {"", "default:gold_lump", ""}, - {"default:gold_lump", "morefarming:carrot", "default:gold_lump"}, - {"", "default:gold_lump", ""}, - } -}) + output = "morefarming:carrot_gold", + recipe = { + {"", "default:gold_lump", ""}, + {"default:gold_lump", "morefarming:carrot", "default:gold_lump"}, + {"", "default:gold_lump", ""}, + } + }) diff --git a/textures/morefarming_wild_carrot.png b/textures/morefarming_wild_carrot.png new file mode 100644 index 0000000..cbb7ecd Binary files /dev/null and b/textures/morefarming_wild_carrot.png differ diff --git a/textures/morefarming_wild_carrot_1.png b/textures/morefarming_wild_carrot_1.png new file mode 100644 index 0000000..1c4026f Binary files /dev/null and b/textures/morefarming_wild_carrot_1.png differ diff --git a/textures/morefarming_wild_carrot_2.png b/textures/morefarming_wild_carrot_2.png new file mode 100644 index 0000000..fdabde6 Binary files /dev/null and b/textures/morefarming_wild_carrot_2.png differ diff --git a/textures/morefarming_wild_carrot_3.png b/textures/morefarming_wild_carrot_3.png new file mode 100644 index 0000000..40259e7 Binary files /dev/null and b/textures/morefarming_wild_carrot_3.png differ diff --git a/textures/morefarming_wild_carrot_4.png b/textures/morefarming_wild_carrot_4.png new file mode 100644 index 0000000..0e10583 Binary files /dev/null and b/textures/morefarming_wild_carrot_4.png differ diff --git a/textures/morefarming_wild_carrot_5.png b/textures/morefarming_wild_carrot_5.png new file mode 100644 index 0000000..3e83f43 Binary files /dev/null and b/textures/morefarming_wild_carrot_5.png differ diff --git a/textures/morefarming_wild_carrot_6.png b/textures/morefarming_wild_carrot_6.png new file mode 100644 index 0000000..aedb1bf Binary files /dev/null and b/textures/morefarming_wild_carrot_6.png differ diff --git a/textures/morefarming_wild_carrot_7.png b/textures/morefarming_wild_carrot_7.png new file mode 100644 index 0000000..b3509a0 Binary files /dev/null and b/textures/morefarming_wild_carrot_7.png differ diff --git a/textures/morefarming_wild_carrot_8.png b/textures/morefarming_wild_carrot_8.png new file mode 100644 index 0000000..79fa5b9 Binary files /dev/null and b/textures/morefarming_wild_carrot_8.png differ diff --git a/textures/morefarming_wild_carrot_seed.png b/textures/morefarming_wild_carrot_seed.png new file mode 100644 index 0000000..236a9f1 Binary files /dev/null and b/textures/morefarming_wild_carrot_seed.png differ