cucina_vegana/peanut_default.lua

68 lines
1.8 KiB
Lua
Raw Normal View History

2019-06-13 01:44:28 +02:00
--[[
**********************************************
*** Peanut default ***
2019-06-13 01:44:28 +02:00
**********************************************
]]--
-- Load support for intllib.
2019-11-21 17:24:41 +01:00
local S = cucina_vegana.get_translator
2019-06-13 01:44:28 +02:00
local dname = S("Peanut")
local pname = "peanut"
local step = 7
-- Peanut
2019-06-13 01:44:28 +02:00
farming.register_plant("cucina_vegana:" .. pname, {
description = dname .. " " .. S("Seed"),
harvest_description = dname,
2019-06-13 01:44:28 +02:00
inventory_image = "cucina_vegana_" .. pname .. "_seed.png",
steps = step,
2019-07-02 21:38:03 +02:00
minlight = cucina_vegana.plant_settings.peanut_light,
2019-06-13 01:44:28 +02:00
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_" .. pname, {
description = S("Wild") .. " " .. dname,
paramtype = "light",
walkable = false,
2019-07-16 22:59:13 +02:00
drop = {
items = {
2019-06-13 01:44:28 +02:00
{items = {"cucina_vegana:seed_" .. pname .. " 4"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
sunlight_propagates = true,
tiles = {"cucina_vegana_" .. pname .. "_" .. step .. ".png"},
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_peanut = 1})
2019-06-13 01:59:07 +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-06-13 01:44:28 +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-10-29 03:41:25 +01:00
if(cucina_vegana.sign_bot) then
2022-02-12 14:00:09 +01: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