cucina_vegana/chives_default.lua

42 lines
1.0 KiB
Lua
Raw Normal View History

-- Load support for intllib.
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
-- chives
farming.register_plant("cucina_vegana:chives", {
description = S("Chives"),
inventory_image = "cucina_vegana_chives_seed.png",
steps = 5,
minlight = 10,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_chives", {
description = S("Wild Chives"),
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_chives 3"}},
{items = {"cucina_vegana:chives"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
2018-05-18 21:16:25 +02:00
sunlight_propagates = true,
tiles = {"cucina_vegana_chives_5.png"},
groups = {snappy = 3, dig_immediate=1, flammable=2, plant=1, attached_node = 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
},
},
})