forked from MineClone5/MineClone5
Potatoe plants get a “#” shape, too
This commit is contained in:
parent
1d8b8d5c73
commit
6901781b49
|
@ -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
|
||||
|
|
|
@ -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"},
|
||||
|
|
Loading…
Reference in New Issue