38 lines
1.0 KiB
Lua
38 lines
1.0 KiB
Lua
-- Parsley
|
|
farming.register_plant("cucina_vegana:parsley", {
|
|
description = "Parsley",
|
|
inventory_image = "cucina_vegana_parsley_seed.png",
|
|
steps = 5,
|
|
minlight = 11,
|
|
maxlight = default.LIGHT_MAX,
|
|
fertility = {"grassland"},
|
|
groups = {flammable = 4},
|
|
})
|
|
|
|
-- Register for Mapgen
|
|
minetest.register_node("cucina_vegana:wild_parsley", {
|
|
description = "Wild Parsley",
|
|
paramtype = "light",
|
|
walkable = false,
|
|
drop = {
|
|
items = {
|
|
{items = {"cucina_vegana:seed_parsley 3"}},
|
|
{items = {"cucina_vegana:parsley"}},
|
|
}
|
|
},
|
|
drawtype = "plantlike",
|
|
paramtype2 = "facedir",
|
|
tiles = {"cucina_vegana_parsley_5.png"},
|
|
groups = {snappy = 3, dig_immediate=1, flammable=2, plant=1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.5, -0.5, -0.5, 0.5, -0.35, 0.5}, -- side f
|
|
},
|
|
},
|
|
})
|
|
|
|
minetest.register_alias("parsley:parsley", "cucina_vegana:parsley")
|
|
minetest.register_alias("parsley:seed", "cucina_vegana:parsley_seed")
|
|
minetest.register_alias("parsley:wild_parsley", "cucina_vegana:wild_parsley") |