diff --git a/crops/artichoke.lua b/crops/artichoke.lua index c42384f..2dc5deb 100644 --- a/crops/artichoke.lua +++ b/crops/artichoke.lua @@ -20,6 +20,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/asparagus.lua b/crops/asparagus.lua index 0a826dc..5924037 100644 --- a/crops/asparagus.lua +++ b/crops/asparagus.lua @@ -23,6 +23,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/barley.lua b/crops/barley.lua index 9f3d2ba..cf2d932 100644 --- a/crops/barley.lua +++ b/crops/barley.lua @@ -48,6 +48,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/carrot.lua b/crops/carrot.lua index da81fb5..0f53c87 100644 --- a/crops/carrot.lua +++ b/crops/carrot.lua @@ -58,6 +58,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/chili.lua b/crops/chili.lua index 9e52870..21aa371 100644 --- a/crops/chili.lua +++ b/crops/chili.lua @@ -58,6 +58,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 4, plant = 1, attached_node = 1, diff --git a/crops/coffee.lua b/crops/coffee.lua index 728d307..64d4e13 100644 --- a/crops/coffee.lua +++ b/crops/coffee.lua @@ -52,6 +52,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/corn.lua b/crops/corn.lua index 602e545..b124e19 100644 --- a/crops/corn.lua +++ b/crops/corn.lua @@ -113,6 +113,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/cotton.lua b/crops/cotton.lua index 1ea85bf..f231f24 100644 --- a/crops/cotton.lua +++ b/crops/cotton.lua @@ -100,6 +100,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 4, plant = 1, attached_node = 1, diff --git a/crops/eggplant.lua b/crops/eggplant.lua index 818b490..7b6a8f3 100644 --- a/crops/eggplant.lua +++ b/crops/eggplant.lua @@ -22,6 +22,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/garlic.lua b/crops/garlic.lua index 3366924..ca2005a 100644 --- a/crops/garlic.lua +++ b/crops/garlic.lua @@ -7,7 +7,7 @@ local S = farming.intllib --- potato +-- garlic clove minetest.register_craftitem("farming:garlic_clove", { description = S("Garlic clove"), inventory_image = "crops_garlic_clove.png", diff --git a/crops/ginger.lua b/crops/ginger.lua index 4098987..7cfbd05 100644 --- a/crops/ginger.lua +++ b/crops/ginger.lua @@ -21,6 +21,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/hemp.lua b/crops/hemp.lua index 9d19784..da5d568 100644 --- a/crops/hemp.lua +++ b/crops/hemp.lua @@ -192,6 +192,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/mint.lua b/crops/mint.lua index 53546ba..a0057a5 100644 --- a/crops/mint.lua +++ b/crops/mint.lua @@ -2,13 +2,21 @@ local S = farming.intllib -- mint seed -minetest.register_craftitem("farming:seed_mint", { +minetest.register_node("farming:seed_mint", { description = S("Mint Seeds"), + tiles = {"farming_mint_seeds.png"}, inventory_image = "farming_mint_seeds.png", - groups = {seed = 2, flammable = 2}, + wield_image = "farming_mint_seeds.png", + drawtype = "signlike", + groups = {seed = 1, snappy = 3, attached_node = 1, growing = 1, flammable = 2}, + paramtype = "light", + paramtype2 = "wallmounted", + walkable = false, + sunlight_propagates = true, + selection_box = farming.select, + next_plant = "farming:mint_1", on_place = function(itemstack, placer, pointed_thing) - return farming.place_seed( - itemstack, placer, pointed_thing, "farming:mint_1") + return farming.place_seed(itemstack, placer, pointed_thing, "farming:seed_mint") end }) @@ -47,6 +55,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/onion.lua b/crops/onion.lua index af002ec..2b6fd91 100644 --- a/crops/onion.lua +++ b/crops/onion.lua @@ -54,6 +54,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 3, plant = 1, attached_node = 1, diff --git a/crops/parsley.lua b/crops/parsley.lua index 3399cfc..e2dab3e 100644 --- a/crops/parsley.lua +++ b/crops/parsley.lua @@ -19,6 +19,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/pineapple.lua b/crops/pineapple.lua index e8a09b9..73cd6bc 100644 --- a/crops/pineapple.lua +++ b/crops/pineapple.lua @@ -85,6 +85,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/rhubarb.lua b/crops/rhubarb.lua index b8734de..989b72b 100644 --- a/crops/rhubarb.lua +++ b/crops/rhubarb.lua @@ -38,6 +38,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/rice.lua b/crops/rice.lua index 3b87003..44a451b 100644 --- a/crops/rice.lua +++ b/crops/rice.lua @@ -54,6 +54,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 4, plant = 1, attached_node = 1, diff --git a/crops/sunflower.lua b/crops/sunflower.lua index 03604c4..c3cb6b1 100644 --- a/crops/sunflower.lua +++ b/crops/sunflower.lua @@ -8,12 +8,22 @@ minetest.register_craftitem("farming:sunflower", { }) -- sunflower seeds -minetest.register_craftitem("farming:seed_sunflower", { +minetest.register_node("farming:seed_sunflower", { description = S("Sunflower Seeds"), + tiles = {"farming_sunflower_seeds.png"}, inventory_image = "farming_sunflower_seeds.png", - groups = {seed = 2, food_sunflower_seeds = 1, flammable = 2}, + wield_image = "farming_sunflower_seeds.png", + drawtype = "signlike", + groups = {seed = 1, snappy = 3, attached_node = 1, growing = 1, + food_sunflower_seeds = 1, flammable = 2}, + paramtype = "light", + paramtype2 = "wallmounted", + walkable = false, + sunlight_propagates = true, + selection_box = farming.select, + next_plant = "farming:sunflower_1", on_place = function(itemstack, placer, pointed_thing) - return farming.place_seed(itemstack, placer, pointed_thing, "farming:sunflower_1") + return farming.place_seed(itemstack, placer, pointed_thing, "farming:seed_sunflower") end }) @@ -98,6 +108,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/tomato.lua b/crops/tomato.lua index 8362c68..5541067 100644 --- a/crops/tomato.lua +++ b/crops/tomato.lua @@ -43,6 +43,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/vanilla.lua b/crops/vanilla.lua index 4e048e1..c5304e9 100644 --- a/crops/vanilla.lua +++ b/crops/vanilla.lua @@ -20,6 +20,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 2, plant = 1, attached_node = 1, diff --git a/crops/wheat.lua b/crops/wheat.lua index 252403e..d59e7e0 100644 --- a/crops/wheat.lua +++ b/crops/wheat.lua @@ -159,6 +159,7 @@ local def = { walkable = false, buildable_to = true, drop = "", + waving = 1, selection_box = farming.select, groups = { snappy = 3, flammable = 4, plant = 1, attached_node = 1,