From 273ce33bcdf053a01541370e85af4164fb91f47a Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 4 Dec 2021 14:06:18 +0000 Subject: [PATCH 1/2] tidy code, tweak recipes, simplify peas, soy, rice --- crops/cocoa.lua | 33 +++++--- crops/coffee.lua | 17 +--- crops/mint.lua | 18 +---- crops/peas.lua | 18 ++--- crops/rice.lua | 139 +++++++++++++++++++++++++++++++++ crops/ryeoatrice.lua | 60 -------------- crops/soy.lua | 20 ++--- crops/vanilla.lua | 4 +- farming.conf_example | 1 + food.lua | 39 ++++----- grass.lua | 2 +- init.lua | 2 + textures/farming_pea_peas.png | Bin 659 -> 0 bytes textures/farming_rice_seed.png | Bin 201 -> 0 bytes textures/farming_soy_beans.png | Bin 699 -> 0 bytes 15 files changed, 198 insertions(+), 155 deletions(-) create mode 100644 crops/rice.lua delete mode 100644 textures/farming_pea_peas.png delete mode 100644 textures/farming_rice_seed.png delete mode 100644 textures/farming_soy_beans.png diff --git a/crops/cocoa.lua b/crops/cocoa.lua index 190aea9..74132d5 100644 --- a/crops/cocoa.lua +++ b/crops/cocoa.lua @@ -54,7 +54,7 @@ local function place_cocoa(itemstack, placer, pointed_thing, plantname) minetest.after(0.20, farming.refill_plant, placer, - "farming:cocoa_beans", + "farming:cocoa_beans_raw", placer:get_wield_index() ) end @@ -64,15 +64,28 @@ local function place_cocoa(itemstack, placer, pointed_thing, plantname) end -- cocoa beans -minetest.register_craftitem("farming:cocoa_beans", { - description = S("Cocoa Beans"), - inventory_image = "farming_cocoa_beans.png", - groups = {seed = 2, food_cocoa = 1, flammable = 2}, +minetest.register_craftitem("farming:cocoa_beans_raw", { + description = S("Raw Cocoa Beans"), + inventory_image = "farming_cocoa_beans.png^[brighten", + groups = {seed = 1, flammable = 2}, on_place = function(itemstack, placer, pointed_thing) return place_cocoa(itemstack, placer, pointed_thing, "farming:cocoa_1") end }) +minetest.register_craftitem("farming:cocoa_beans", { + description = S("Cocoa Beans"), + inventory_image = "farming_cocoa_beans.png", + groups = {food_cocoa = 1, flammable = 2} +}) + +minetest.register_craft({ + type = "cooking", + cooktime = 5, + output = "farming:cocoa_beans", + recipe = "farming:cocoa_beans_raw" +}) + minetest.register_craft( { output = "dye:brown 2", recipe = {{"farming:cocoa_beans"}} @@ -166,7 +179,7 @@ minetest.register_node("farming:cocoa_2", table.copy(def)) def.tiles = {"farming_cocoa_3.png"} def.drop = { items = { - {items = {"farming:cocoa_beans 1"}, rarity = 1} + {items = {"farming:cocoa_beans_raw 1"}, rarity = 1} } } minetest.register_node("farming:cocoa_3", table.copy(def)) @@ -177,9 +190,9 @@ def.groups.growing = nil def.growth_check = nil def.drop = { items = { - {items = {"farming:cocoa_beans 2"}, rarity = 1}, - {items = {"farming:cocoa_beans 1"}, rarity = 2}, - {items = {"farming:cocoa_beans 1"}, rarity = 4} + {items = {"farming:cocoa_beans_raw 2"}, rarity = 1}, + {items = {"farming:cocoa_beans_raw 1"}, rarity = 2}, + {items = {"farming:cocoa_beans_raw 1"}, rarity = 4} } } minetest.register_node("farming:cocoa_4", table.copy(def)) @@ -187,7 +200,7 @@ minetest.register_node("farming:cocoa_4", table.copy(def)) -- add to registered_plants farming.registered_plants["farming:cocoa_beans"] = { crop = "farming:cocoa", - seed = "farming:cocoa_beans", + seed = "farming:cocoa_beans_raw", minlight = farming.min_light, maxlight = farming.max_light, steps = 4 diff --git a/crops/coffee.lua b/crops/coffee.lua index aa67c5e..490547e 100644 --- a/crops/coffee.lua +++ b/crops/coffee.lua @@ -35,28 +35,13 @@ minetest.register_alias("farming:drinking_cup", "vessels:drinking_glass") minetest.register_craft( { output = "farming:coffee_cup", recipe = { - {"group:food_saucepan", "group:food_coffee", "group:water_bucket"}, - {"", "vessels:drinking_glass", ""} + {"group:food_saucepan", "group:food_coffee", "group:food_water_glass"} }, replacements = { - {"group:water_bucket", "bucket:bucket_empty"}, {"group:food_saucepan", "farming:saucepan"} } }) -if minetest.get_modpath("bucket_wooden") then - minetest.register_craft( { - output = "farming:coffee_cup", - recipe = { - {"group:food_saucepan", "group:food_coffee", "group:water_bucket_wooden"}, - {"", "vessels:drinking_glass", ""} - }, - replacements = { - {"group:water_bucket_wooden", "bucket_wooden:bucket_empty"}, - {"group:food_saucepan", "farming:saucepan"} - } - }) -end -- coffee definition local def = { diff --git a/crops/mint.lua b/crops/mint.lua index eceaa16..de4b6b3 100644 --- a/crops/mint.lua +++ b/crops/mint.lua @@ -31,27 +31,13 @@ minetest.register_craft({ output = "farming:mint_tea", recipe = { {"group:food_mint", "group:food_mint", "group:food_mint"}, - {"group:water_bucket", "farming:juicer", "vessels:drinking_glass"} + {"group:food_water_glass", "farming:juicer", ""} }, replacements = { - {"group:food_juicer", "farming:juicer"}, - {"group:water_bucket", "bucket:bucket_empty"} + {"group:food_juicer", "farming:juicer"} } }) -if minetest.get_modpath("bucket_wooden") then - minetest.register_craft({ - output = "farming:mint_tea", - recipe = { - {"group:food_mint", "group:food_mint", "group:food_mint"}, - {"group:water_bucket_wooden", "farming:juicer", "vessels:drinking_glass"} - }, - replacements = { - {"group:food_juicer", "farming:juicer"}, - {"group:water_bucket_wooden", "bucket_wooden:bucket_empty"} - } - }) -end -- mint definition local def = { diff --git a/crops/peas.lua b/crops/peas.lua index 7705889..50b8234 100644 --- a/crops/peas.lua +++ b/crops/peas.lua @@ -7,23 +7,15 @@ local S = farming.intllib minetest.register_craftitem("farming:pea_pod", { description = S("Pea Pod"), inventory_image = "farming_pea_pod.png", - groups = {seed = 2, food_pea_pod = 1, flammable = 2}, + groups = {seed = 2, food_peas = 1, food_pea_pod = 1, flammable = 2}, on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, pointed_thing, "farming:pea_1") - end -}) - -minetest.register_craftitem("farming:peas", { - description = S("Peas"), - inventory_image = "farming_pea_peas.png", - groups = {food_peas = 1, flammable = 2}, + end, on_use = minetest.item_eat(1) }) -minetest.register_craft({ - output = "farming:peas", - recipe = {{"farming:pea_pod"}} -}) +-- replacement for separate peas item that was removed +minetest.register_alias("farming:peas", "farming:pea_pod") -- pea soup minetest.register_craftitem("farming:pea_soup", { @@ -91,7 +83,7 @@ minetest.register_node("farming:pea_5", table.copy(def)) -- add to registered_plants farming.registered_plants["farming:pea_pod"] = { - crop = "farming:pea", + crop = "farming:pea_pod", seed = "farming:pea_pod", minlight = farming.min_light, maxlight = farming.max_light, diff --git a/crops/rice.lua b/crops/rice.lua new file mode 100644 index 0000000..6b8e2be --- /dev/null +++ b/crops/rice.lua @@ -0,0 +1,139 @@ + +local S = farming.intllib + +-- rice +minetest.register_craftitem("farming:rice", { + description = S("Rice"), + inventory_image = "farming_rice.png", + groups = {seed = 2, food_rice = 1, flammable = 2}, + on_place = function(itemstack, placer, pointed_thing) + return farming.place_seed(itemstack, placer, pointed_thing, "farming:rice_1") + end +}) + +-- replacement for rice seeds that was removed +minetest.register_alias("farming:seed_rice", "farming:rice") + +minetest.register_craftitem("farming:rice_bread", { + description = S("Rice Bread"), + inventory_image = "farming_rice_bread.png", + on_use = minetest.item_eat(5), + groups = {food_rice_bread = 1, flammable = 2} +}) + +minetest.register_craftitem("farming:rice_flour", { + description = S("Rice Flour"), + inventory_image = "farming_rice_flour.png", + groups = {food_rice_flour = 1, flammable = 1} +}) + +minetest.register_craft({ + output = "farming:rice_flour", + recipe = { + {"farming:rice", "farming:rice", "farming:rice"}, + {"farming:rice", "farming:mortar_pestle", ""} + }, + replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}} +}) + +minetest.register_craft({ + type = "cooking", + cooktime = 15, + output = "farming:rice_bread", + recipe = "farming:rice_flour" +}) + +-- rice definition +local def = { + drawtype = "plantlike", + tiles = {"farming_rice_1.png"}, + paramtype = "light", + paramtype2 = "meshoptions", + place_param2 = 3, + sunlight_propagates = true, + walkable = false, + buildable_to = true, + drop = "", + selection_box = farming.select, + groups = { + snappy = 3, flammable = 4, plant = 1, attached_node = 1, + not_in_creative_inventory = 1, growing = 1 + }, + sounds = default.node_sound_leaves_defaults() +} + +-- stage 1 +minetest.register_node("farming:rice_1", table.copy(def)) + +-- stage 2 +def.tiles = {"farming_rice_2.png"} +minetest.register_node("farming:rice_2", table.copy(def)) + +-- stage 3 +def.tiles = {"farming_rice_3.png"} +minetest.register_node("farming:rice_3", table.copy(def)) + +-- stage 4 +def.tiles = {"farming_rice_4.png"} +minetest.register_node("farming:rice_4", table.copy(def)) + +-- stage 5 +def.tiles = {"farming_rice_5.png"} +def.drop = { + items = { + {items = {"farming:rice"}, rarity = 2} + } +} +minetest.register_node("farming:rice_5", table.copy(def)) + +-- stage 6 +def.tiles = {"farming_rice_6.png"} +def.drop = { + items = { + {items = {"farming:rice"}, rarity = 2} + } +} +minetest.register_node("farming:rice_6", table.copy(def)) + +-- stage 7 +def.tiles = {"farming_rice_7.png"} +def.drop = { + items = { + {items = {"farming:rice"}, rarity = 1}, + {items = {"farming:rice"}, rarity = 3} + } +} +minetest.register_node("farming:rice_7", table.copy(def)) + +-- stage 8 (final) +def.tiles = {"farming_rice_8.png"} +def.groups.growing = nil +def.drop = { + items = { + {items = {"farming:rice 2"}, rarity = 1}, + {items = {"farming:rice"}, rarity = 2} + } +} +minetest.register_node("farming:rice_8", table.copy(def)) + +-- add to registered_plants +farming.registered_plants["farming:rice"] = { + crop = "farming:rice", + seed = "farming:rice", + minlight = farming.min_light, + maxlight = farming.max_light, + steps = 8 +} + +-- fuels +minetest.register_craft({ + type = "fuel", + recipe = "farming:rice", + burntime = 1 +}) + +minetest.register_craft({ + type = "fuel", + recipe = "farming:rice_bread", + burntime = 1 +}) diff --git a/crops/ryeoatrice.lua b/crops/ryeoatrice.lua index 090cd74..ad2d5bc 100644 --- a/crops/ryeoatrice.lua +++ b/crops/ryeoatrice.lua @@ -59,54 +59,6 @@ minetest.register_craft({ replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}} }) --- Rice - -farming.register_plant("farming:rice", { - description = S("Rice grains"), - paramtype2 = "meshoptions", - inventory_image = "farming_rice_seed.png", - steps = 8, - place_param2 = 3 -}) - -minetest.override_item("farming:rice", { - description = S("Rice"), - groups = {food_rice = 1, flammable = 4} -}) - -minetest.override_item("farming:rice_1", {drop = {}}) -minetest.override_item("farming:rice_2", {drop = {}}) -minetest.override_item("farming:rice_3", {drop = {}}) - -minetest.register_craftitem("farming:rice_bread", { - description = S("Rice Bread"), - inventory_image = "farming_rice_bread.png", - on_use = minetest.item_eat(5), - groups = {food_rice_bread = 1, flammable = 2} -}) - -minetest.register_craftitem("farming:rice_flour", { - description = S("Rice Flour"), - inventory_image = "farming_rice_flour.png", - groups = {food_rice_flour = 1, flammable = 1} -}) - -minetest.register_craft({ - output = "farming:rice_flour", - recipe = { - {"farming:rice", "farming:rice", "farming:rice"}, - {"farming:rice", "farming:mortar_pestle", ""} - }, - replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}} -}) - -minetest.register_craft({ - type = "cooking", - cooktime = 15, - output = "farming:rice_bread", - recipe = "farming:rice_flour" -}) - -- Multigrain flour minetest.register_craftitem("farming:flour_multigrain", { @@ -143,12 +95,6 @@ minetest.register_craft({ -- Fuels -minetest.register_craft({ - type = "fuel", - recipe = "farming:rice_bread", - burntime = 1 -}) - minetest.register_craft({ type = "fuel", recipe = "farming:bread_multigrain", @@ -166,9 +112,3 @@ minetest.register_craft({ recipe = "farming:oat", burntime = 1 }) - -minetest.register_craft({ - type = "fuel", - recipe = "farming:rice", - burntime = 1 -}) diff --git a/crops/soy.lua b/crops/soy.lua index c7ca848..97c71be 100644 --- a/crops/soy.lua +++ b/crops/soy.lua @@ -5,23 +5,14 @@ local S = farming.intllib minetest.register_craftitem("farming:soy_pod", { description = S("Soy Pod"), inventory_image = "farming_soy_pod.png", - groups = {seed = 2, food_soy_pod = 1, flammable = 2}, + groups = {seed = 2, food_soy = 1, food_soy_pod = 1, flammable = 2}, on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, pointed_thing, "farming:soy_1") end }) -minetest.register_craftitem("farming:soy_beans", { - description = S("Soy Beans"), - inventory_image = "farming_soy_beans.png", - groups = {food_soy = 1, flammable = 2}, - on_use = minetest.item_eat(1) -}) - -minetest.register_craft({ - output = "farming:soy_beans", - recipe = {{"farming:soy_pod"}} -}) +-- replacement for soy beans that was removed +minetest.register_alias("farming:soy_beans", "farming:soy_pod") -- soy sauce minetest.register_node("farming:soy_sauce", { @@ -42,7 +33,6 @@ minetest.register_node("farming:soy_sauce", { sounds = default.node_sound_glass_defaults() }) - -- soy sauce recipe minetest.register_craft( { output = "farming:soy_sauce", @@ -173,7 +163,7 @@ def.drop = { max_items = 3, items = { {items = {"farming:soy_pod"}, rarity = 1}, {items = {"farming:soy_pod"}, rarity = 2}, - {items = {"farming:soy_pod"}, rarity = 3}, + {items = {"farming:soy_pod"}, rarity = 3} } } minetest.register_node("farming:soy_6", table.copy(def)) @@ -194,7 +184,7 @@ minetest.register_node("farming:soy_7", table.copy(def)) -- add to registered_plants farming.registered_plants["farming:soy_pod"] = { - crop = "farming:soy", + crop = "farming:soy_pod", seed = "farming:soy_pod", minlight = farming.min_light, maxlight = farming.max_light, diff --git a/crops/vanilla.lua b/crops/vanilla.lua index d17c8c3..f014a8d 100644 --- a/crops/vanilla.lua +++ b/crops/vanilla.lua @@ -50,10 +50,10 @@ minetest.register_craft( { output = "farming:vanilla_extract", recipe = { {"group:food_vanilla", "group:food_vanilla", "group:food_vanilla"}, - {"group:food_vanilla", "farming:bottle_ethanol", "bucket:bucket_water"}, + {"group:food_vanilla", "farming:bottle_ethanol", "group:food_water_glass"}, }, replacements = { - {"bucket:bucket_water", "bucket:bucket_empty"}, + {"group:food_water_glass", "vessels:drinking_glass"} } }) diff --git a/farming.conf_example b/farming.conf_example index 439ebe6..7f103cd 100644 --- a/farming.conf_example +++ b/farming.conf_example @@ -39,6 +39,7 @@ farming.artichoke = 0.001 farming.parsley = 0.002 farming.sunflower = 0.001 farming.grains = true -- true or false only +farming.rice = true -- default rarety of crops on map (higher number = more crops) farming.rarety = 0.002 diff --git a/food.lua b/food.lua index 4c4d7c3..8665625 100644 --- a/food.lua +++ b/food.lua @@ -39,6 +39,19 @@ minetest.register_craft({ replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} }) +if minetest.get_modpath("bucket_wooden") then + + minetest.register_craft({ + output = "farming:glass_water 4", + recipe = { + {"vessels:drinking_glass", "vessels:drinking_glass"}, + {"vessels:drinking_glass", "vessels:drinking_glass"}, + {"group:water_bucket_wooden", "farming:hemp_fibre"} + }, + replacements = {{"group:water_bucket_wooden", "bucket_wooden:bucket_empty"}} + }) +end + --= Sugar minetest.register_craftitem("farming:sugar", { @@ -155,7 +168,6 @@ minetest.register_node("farming:salt_crystal", { }, }) minetest.register_craft({ --- type = "shapeless", output = "farming:salt 9", recipe = { {"farming:salt_crystal", "farming:mortar_pestle"} @@ -196,29 +208,14 @@ minetest.register_craft({ recipe = { {"flowers:rose", "flowers:rose", "flowers:rose"}, {"flowers:rose", "flowers:rose", "flowers:rose"}, - {"group:water_bucket", "group:food_pot", "vessels:glass_bottle"} + {"group:food_water_glass", "group:food_pot", "vessels:glass_bottle"} }, replacements = { - {"group:water_bucket", "bucket:bucket_empty"}, + {"group:food_water_glass", "vessels:drinking_glass"}, {"group:food_pot", "farming:pot"} } }) -if minetest.get_modpath("bucket_wooden") then - minetest.register_craft({ - output = "farming:rose_water", - recipe = { - {"flowers:rose", "flowers:rose", "flowers:rose"}, - {"flowers:rose", "flowers:rose", "flowers:rose"}, - {"group:water_bucket_wooden", "group:food_pot", "vessels:glass_bottle"} - }, - replacements = { - {"group:water_bucket_wooden", "bucket_wooden:bucket_empty"}, - {"group:food_pot", "farming:pot"} - } - }) -end - --= Turkish Delight minetest.register_craftitem("farming:turkish_delight", { @@ -251,7 +248,6 @@ minetest.register_craftitem("farming:garlic_bread", { }) minetest.register_craft({ --- type = "shapeless", output = "farming:garlic_bread", recipe = { {"group:food_toast", "group:food_garlic_clove", "group:food_garlic_clove"} @@ -312,7 +308,6 @@ minetest.register_craftitem("farming:porridge", { }) minetest.register_craft({ --- type = "shapeless", output = "farming:porridge", recipe = { {"group:food_oats", "group:food_oats", "group:food_oats"}, @@ -333,7 +328,6 @@ minetest.register_craftitem("farming:jaffa_cake", { }) minetest.register_craft({ --- type = "shapeless", output = "farming:jaffa_cake", recipe = { {"farming:baking_tray", "group:food_egg", "group:food_sugar"}, @@ -342,7 +336,8 @@ minetest.register_craft({ }, replacements = { {"farming:baking_tray", "farming:baking_tray"}, - {"mobs:bucket_milk", "bucket:bucket_empty"} + {"mobs:bucket_milk", "bucket:bucket_empty"}, + {"farming:soy_milk", "vessels:drining_glass"} } }) diff --git a/grass.lua b/grass.lua index 86e7ac5..a52ace9 100644 --- a/grass.lua +++ b/grass.lua @@ -39,7 +39,7 @@ minetest.override_item("default:junglegrass", { max_items = 1, items = { {items = {"farming:seed_cotton"}, rarity = 8}, - {items = {"farming:seed_rice"},rarity = 8}, + {items = {"farming:rice"},rarity = 8}, {items = {"default:junglegrass"}} } } diff --git a/init.lua b/init.lua index 3b0a97c..664f43b 100644 --- a/init.lua +++ b/init.lua @@ -636,6 +636,7 @@ farming.artichoke = 0.001 farming.parsley = 0.002 farming.sunflower = 0.001 farming.grains = true +farming.rice = true farming.rarety = 0.002 @@ -699,6 +700,7 @@ ddoo("peas.lua", farming.peas) ddoo("beetroot.lua", farming.beetroot) ddoo("chili.lua", farming.chili) ddoo("ryeoatrice.lua", farming.grains) +ddoo("rice.lua", farming.rice) ddoo("mint.lua", farming.mint) ddoo("cabbage.lua", farming.cabbage) ddoo("blackberry.lua", farming.blackberry) diff --git a/textures/farming_pea_peas.png b/textures/farming_pea_peas.png deleted file mode 100644 index d70b28393b664210155b79823b21a73c3d904698..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 659 zcmV;E0&M+>P)aB(o%4oH%X>-}G~y6ZjDnzEx)2ma53!)=DQJWmS`R%05r?2Z zK>7 z4lXu%hrhSX6ze%?0097_t6g)(lBym?tIw=&O;S~+=1<+W3lHqXXb1otE}SwO>xawq z7Ct3KGTYH#4+S0{0YEdZI=SEexskR;K2lj$zhp7DuB?kw=c2o!`1xIM_Q_<)HA_Y7 z`+=?-T(#L2F|cMIt<~S`zLkuA`5?`c0Ga?IrK1f70Pa{a(4*7pB_$`b0AS@huQpWo z(g4Z;q)esOic}_Cs?{*p0f4j0AR3dt^egJGyh{_q9d>u7ut%K9i90LNkzU`iVz)sS zn2(r^b&pT9Utt+qzXo8cx%MQ=4VDsz3-&_+01_-?%t2Mt0FnS|03=i(SI2c8Jrp4D z2xv64nwDZL04o3yKul3&W-GKbRSZBC7Mptz=g08-N(=x1002ovPDHLkV1g?%A=&@{ diff --git a/textures/farming_rice_seed.png b/textures/farming_rice_seed.png deleted file mode 100644 index 854cd05f4dc6dd710a41fd7ce7278974a52eeed8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 201 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPFv5AX?b1=2^49zA*Tl$(7{U>qoN$1N@36!>9-ie2I(}^L zIUTYX1&l-u3jJ~Fo#LDhXVx^#;4~EA5;IU> YW{|qV_2;$c2Q`rCp00i_>zopr0I;S>i2wiq diff --git a/textures/farming_soy_beans.png b/textures/farming_soy_beans.png deleted file mode 100644 index aedc04c9d620cbcb0448b06ea33bbc68a8608e0c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 699 zcmV;s0!00ZP)Px%bxA})R5*>TlHW^HaTvy*opZLG9XEAuXUr{{KdLP&BO_4?jWS$@|ARC|NB@9bharKky#jJi9KFnt%xaz`B2-mmsN@q$Jj*6uFXS43e0L69h>OW^MV+@MTx7N(VT{qmd^y%B!cR zlP`N}Wp7{Ot*ja|%*|GZ^Cn4B`^7|z-VCo^^l*G+@WH`ev#tEZh4#_a8NRXs4DT&QOWGxnp23I^BKba4Z)q?kV!x>7WYu%N$iH*?r hfQRFI@`eA4egjLb^6XQBF^K>G002ovPDHLkV1fwRMfU&z From 211cedca3a34ee6c6379684a160a572b48f55a31 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 10 Dec 2021 08:23:37 +0000 Subject: [PATCH 2/2] fix cornstarch groups --- crops/corn.lua | 2 +- init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crops/corn.lua b/crops/corn.lua index fe89079..97bb86a 100644 --- a/crops/corn.lua +++ b/crops/corn.lua @@ -55,7 +55,7 @@ minetest.register_craft({ minetest.register_craftitem("farming:cornstarch", { description = S("Cornstarch"), inventory_image = "farming_cornstarch.png", - groups = {food_cornstarch = 1, food_gelatin = 1, food_flammable = 2} + groups = {food_cornstarch = 1, food_gelatin = 1, flammable = 2} }) minetest.register_craft({ diff --git a/init.lua b/init.lua index 664f43b..94878de 100644 --- a/init.lua +++ b/init.lua @@ -7,7 +7,7 @@ farming = { mod = "redo", - version = "20211116", + version = "20211204", path = minetest.get_modpath("farming"), select = { type = "fixed",