diff --git a/mods/ITEMS/mcl_dye/init.lua b/mods/ITEMS/mcl_dye/init.lua index e7aa1b55bc..8e05d4d52d 100644 --- a/mods/ITEMS/mcl_dye/init.lua +++ b/mods/ITEMS/mcl_dye/init.lua @@ -145,9 +145,9 @@ mcl_dye.apply_bone_meal = function(pointed_thing) elseif string.find(n.name, "mcl_farming:potato_") ~= nil then stage = tonumber(string.sub(n.name, -1)) if stage == 1 then - minetest.add_node(pos, {name="mcl_farming:potato_"..math.random(stage,2)}) + minetest.add_node(pos, {name="mcl_farming:potato_"..math.random(stage,2), param = n.param, param2 = n.param2}) else - minetest.add_node(pos, {name="mcl_farming:potato"}) + minetest.add_node(pos, {name="mcl_farming:potato", param = n.param, param2 = n.param2}) end return true elseif string.find(n.name, "mcl_farming:beetroot_") ~= nil then diff --git a/mods/ITEMS/mcl_farming/potatoes.lua b/mods/ITEMS/mcl_farming/potatoes.lua index cff24538ef..82813c99d7 100644 --- a/mods/ITEMS/mcl_farming/potatoes.lua +++ b/mods/ITEMS/mcl_farming/potatoes.lua @@ -3,6 +3,8 @@ minetest.register_node("mcl_farming:potato_1", { _doc_items_entry_name = "Premature Potato Plant", _doc_items_longdesc = "Potato plants are plants which grow on farmland under sunlight in 3 stages. On hydrated farmland, they grow a bit faster. They can be harvested at any time but will only yield a profit when mature.", paramtype = "light", + paramtype2 = "meshoptions", + place_param2 = 3, walkable = false, drawtype = "plantlike", drop = "mcl_farming:potato_item", @@ -22,6 +24,8 @@ minetest.register_node("mcl_farming:potato_2", { description = "Premature Potato Plant (Second Stage)", _doc_items_create_entry = false, paramtype = "light", + paramtype2 = "meshoptions", + place_param2 = 3, walkable = false, drawtype = "plantlike", drop = "mcl_farming:potato_item", @@ -41,6 +45,8 @@ minetest.register_node("mcl_farming:potato", { description = "Mature Potato Plant", _doc_items_longdesc = "Mature potato plants are ready to be harvested for potatoes. They won't grow any further.", paramtype = "light", + paramtype2 = "meshoptions", + place_param2 = 3, walkable = false, drawtype = "plantlike", tiles = {"farming_potato_3.png"},