cucina_vegana/lettuce_default.lua

70 lines
2.0 KiB
Lua
Raw Normal View History

--[[
**********************************************
*** Lettuce default ***
**********************************************
]]--
-- Load support for intllib.
2019-11-21 17:24:41 +01:00
local S = cucina_vegana.get_translator
local dname = S("Lettuce")
local pname = "lettuce"
local step = 5
-- lettuce
farming.register_plant("cucina_vegana:" .. pname, {
2018-12-27 19:42:00 +01:00
description = dname .. " " .. S("Seed"),
inventory_image = "cucina_vegana_" .. pname .. "_seed.png",
steps = step,
2019-07-02 21:38:03 +02:00
minlight = cucina_vegana.plant_settings.lettuce_light,
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1},
})
2019-07-16 22:59:13 +02:00
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_" .. pname, {
2018-12-27 19:23:26 +01:00
description = S("Wild") .. " " ..dname,
paramtype = "light",
walkable = false,
2019-07-16 22:59:13 +02:00
drop = {
items = {
{items = {"cucina_vegana:seed_" .. pname .. " 3"}},
{items = {"cucina_vegana:" .. pname}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_" .. pname .. "_5.png"},
2018-05-18 21:16:25 +02:00
sunlight_propagates = true,
groups = {snappy = 3, dig_immediate=1, flammable=2, plant=1, attached_node = 1, growing = 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
},
},
})
2019-08-28 22:44:21 +02:00
cucina_vegana.add_group("cucina_vegana:seed_" .. pname, {seed_lettuce = 1})
2019-06-13 01:44:28 +02:00
2019-08-28 22:44:21 +02:00
-- Register Recipe for Oil
2018-12-27 19:17:31 +01:00
minetest.register_alias("lettuce:lettuce", "cucina_vegana:" .. pname)
minetest.register_alias("lettuce:seed", "cucina_vegana:" .. pname .. "_seed")
minetest.register_alias("lettuce:wild_lettuce", "cucina_vegana:wild_" .. pname)
2021-09-24 02:44:38 +02:00
table.insert(cucina_vegana.plant_settings.bonemeal_list,
{"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname})
2020-03-04 21:18:20 +01:00
-- Register @ farming_nextgen
if cucina_vegana.farming_ng then
cucina_vegana.register_farming_ng(pname, step)
2019-07-16 22:59:13 +02:00
2020-03-04 21:18:20 +01:00
end -- if(cucina_vegana.farming_ng
2020-03-25 04:44:15 +01:00
-- Register @ Signs_bot
2020-11-22 15:08:40 +01:00
if(cucina_vegana.signs_bot) then
cucina_vegana.register_signs_bot(pname, step)
2020-11-24 19:34:54 +01:00
2020-03-25 04:44:15 +01:00
end