2018-12-26 21:16:41 +01:00
|
|
|
--[[
|
|
|
|
**********************************************
|
|
|
|
*** Kohlrabi default ***
|
|
|
|
**********************************************
|
|
|
|
]]--
|
|
|
|
|
2018-05-28 01:10:48 +02:00
|
|
|
-- Load support for intllib.
|
2019-11-21 17:24:41 +01:00
|
|
|
local S = cucina_vegana.get_translator
|
2018-05-28 01:10:48 +02:00
|
|
|
|
2018-12-26 21:16:41 +01:00
|
|
|
local dname = S("Kohlrabi")
|
|
|
|
local pname = "kohlrabi"
|
|
|
|
local step = 6
|
|
|
|
|
2018-05-16 19:28:05 +02:00
|
|
|
-- kohlrabi
|
2018-12-27 19:17:31 +01:00
|
|
|
farming.register_plant("cucina_vegana:" .. pname, {
|
2018-12-27 19:42:00 +01:00
|
|
|
description = dname .. " " .. S("Seed"),
|
2021-09-26 06:22:57 +02:00
|
|
|
harvest_description = dname,
|
2018-12-26 21:16:41 +01:00
|
|
|
inventory_image = "cucina_vegana_" .. pname .. "_seed.png",
|
|
|
|
steps = step,
|
2019-07-02 21:38:03 +02:00
|
|
|
minlight = cucina_vegana.plant_settings.kohlrabi_light,
|
2018-05-16 19:28:05 +02:00
|
|
|
fertility = {"grassland"},
|
|
|
|
groups = {flammable = 4, attached_node = 1},
|
|
|
|
})
|
2019-07-16 22:59:13 +02:00
|
|
|
|
2018-05-16 19:28:05 +02:00
|
|
|
-- Register for Mapgen
|
2018-12-27 19:17:31 +01:00
|
|
|
minetest.register_node("cucina_vegana:wild_" .. pname, {
|
2018-12-27 19:23:26 +01:00
|
|
|
description = S("Wild") .. " " .. dname,
|
2018-05-16 19:28:05 +02:00
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
2019-07-16 22:59:13 +02:00
|
|
|
drop = {
|
|
|
|
items = {
|
2018-12-26 21:16:41 +01:00
|
|
|
{items = {"cucina_vegana:seed_" .. pname .. " 3"}},
|
2018-12-27 19:17:31 +01:00
|
|
|
{items = {"cucina_vegana:" .. pname}},
|
2018-05-16 19:28:05 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
drawtype = "plantlike",
|
|
|
|
paramtype2 = "facedir",
|
2018-12-26 21:16:41 +01:00
|
|
|
tiles = {"cucina_vegana_" .. pname .. "_" .. step .. ".png"},
|
2018-05-18 21:16:25 +02:00
|
|
|
sunlight_propagates = true,
|
2019-06-03 19:35:14 +02:00
|
|
|
groups = {snappy = 3, dig_immediate=1, flammable=2, plant=1, attached_node = 1, growing = 1},
|
2018-05-16 19:28:05 +02:00
|
|
|
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
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2018-12-27 19:17:31 +01:00
|
|
|
minetest.register_alias("kohlrabi:kohlrabi", "cucina_vegana:" .. pname)
|
2018-12-26 21:16:41 +01:00
|
|
|
minetest.register_alias("kohlrabi:seed", "cucina_vegana:" .. pname .. "_seed")
|
2018-12-27 19:17:31 +01:00
|
|
|
minetest.register_alias("kohlrabi:wild_kohlrabi", "cucina_vegana:wild_" .. pname)
|
2018-12-26 21:16:41 +01:00
|
|
|
|
2021-09-26 06:22:57 +02:00
|
|
|
if(cucina_vegana.plant_settings.bonemeal) then
|
|
|
|
table.insert(cucina_vegana.plant_settings.bonemeal_list,
|
|
|
|
{"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname})
|
|
|
|
|
|
|
|
end -- if(cucina_vegana.plant_settings.bonemeal
|
2019-05-01 18:05:53 +02:00
|
|
|
|
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
|
2021-09-26 06:22:57 +02:00
|
|
|
cucina_vegana.register_signs_bot(pname, 1, step)
|
2020-11-24 19:34:54 +01:00
|
|
|
|
2020-03-25 04:44:15 +01:00
|
|
|
end
|