farming mod isn't going to cut it, I think.

This commit is contained in:
FaceDeer 2017-03-11 19:17:17 -07:00
parent c140593003
commit c5bf0300fb

View File

@ -28,28 +28,85 @@ minetest.register_node("dfcaverns:dead_fungus", {
-- stalks. White -- stalks. White
farming.register_plant("dfcaverns:cave_wheat", { --farming.register_plant("dfcaverns:cave_wheat", {
description = "Cave wheat seed", -- description = "Cave wheat seed",
paramtype2 = "meshoptions", -- paramtype2 = "meshoptions",
inventory_image = "dfcaverns_cave_wheat_seed.png", -- inventory_image = "dfcaverns_cave_wheat_seed.png",
steps = 8, -- steps = 8,
minlight = 0, -- minlight = 0,
maxlight = 8, -- maxlight = 8,
fertility = {"grassland", "desert"}, -- fertility = {"grassland", "desert"},
groups = {flammable = 4}, -- groups = {flammable = 4},
place_param2 = 3, -- place_param2 = 3,
}) --})
local register_cave_wheat = function(number)
minetest.register_node("dfcaverns:cave_wheat_"..tostring(number), {
description = S("Cave Wheat"),
drawtype = "plantlike",
paramtype2 = "meshoptions",
place_param2 = 3,
tiles = {"dfcaverns_cave_wheat_"..tostring(number)..".png"},
inventory_image = "dfcaverns_cave_wheat_"..tostring(number)..".png",
paramtype = "light",
walkable = false,
groups = {flammable=4, oddly_breakable_by_hand=1},
sounds = default.node_sound_leaves_defaults(),
})
end
for i = 1,8 do
register_cave_wheat(i)
end
-------------------------------------------------- --------------------------------------------------
-- Dimple cup -- Dimple cup
-- royal blue -- royal blue
local register_dimple_cup = function(number)
minetest.register_node("dfcaverns:dimple_cups_"..tostring(number), {
description = S("Dimple Cups"),
drawtype = "plantlike",
tiles = {"dfcaverns_dimple_cups_"..tostring(number)..".png"},
inventory_image = "dfcaverns_dimple_cups_"..tostring(number)..".png",
paramtype = "light",
walkable = false,
groups = {flammable=4, oddly_breakable_by_hand=1},
sounds = default.node_sound_leaves_defaults(),
})
end
for i = 1,4 do
register_dimple_cup(i)
end
-------------------------------------------------- --------------------------------------------------
-- Pig tail -- Pig tail
-- Twisting stalks. Gray -- Twisting stalks. Gray
local register_pig_tail = function(number)
minetest.register_node("dfcaverns:pig_tails_"..tostring(number), {
description = S("Pig Tails"),
drawtype = "plantlike",
paramtype2 = "meshoptions",
place_param2 = 3,
tiles = {"dfcaverns_pigtails_"..tostring(number)..".png"},
inventory_image = "dfcaverns_pigtails_"..tostring(number)..".png",
paramtype = "light",
walkable = false,
groups = {flammable=4, oddly_breakable_by_hand=1},
sounds = default.node_sound_leaves_defaults(),
})
end
for i = 1,8 do
register_pig_tail(i)
end
-------------------------------------------------- --------------------------------------------------
-- Plump helmet -- Plump helmet
@ -160,15 +217,31 @@ minetest.register_node("dfcaverns:plump_helmet_4", {
}) })
-------------------------------------------------- --------------------------------------------------
-- Quarry Bush -- Quarry Bush
-- Gray leaves -- Gray leaves
-- Produces rock nuts -- Produces rock nuts
local register_quarry_bush = function(number)
minetest.register_node("dfcaverns:quarry_bush_"..tostring(number), {
description = S("Quarry Bush"),
drawtype = "plantlike",
paramtype2 = "meshoptions",
place_param2 = 4,
tiles = {"dfcaverns_quarry_bush_"..tostring(number)..".png"},
inventory_image = "dfcaverns_quarry_bush_"..tostring(number)..".png",
paramtype = "light",
walkable = false,
groups = {flammable=4, oddly_breakable_by_hand=1},
sounds = default.node_sound_leaves_defaults(),
})
end
for i = 1,5 do
register_quarry_bush(i)
end
-------------------------------------------------- --------------------------------------------------
-- Sweet Pod -- Sweet Pod