56 lines
1.4 KiB
Lua
56 lines
1.4 KiB
Lua
--[[
|
|
**********************************************
|
|
*** Soy default ***
|
|
**********************************************
|
|
]]--
|
|
|
|
-- Soy
|
|
farming.register_plant("cucina_vegana:soy", {
|
|
description = "Soy Beans",
|
|
inventory_image = "cucina_vegana_soy_seed.png",
|
|
steps = 8,
|
|
minlight = 12,
|
|
maxlight = default.LIGHT_MAX,
|
|
fertility = {"grassland"},
|
|
groups = {flammable = 4},
|
|
})
|
|
|
|
-- Register for Mapgen
|
|
minetest.register_node("cucina_vegana:wild_soy", {
|
|
description = "Wild Soy",
|
|
paramtype = "light",
|
|
walkable = false,
|
|
drop = {
|
|
items = {
|
|
{items = {"cucina_vegana:seed_soy 3"}},
|
|
{items = {"cucina_vegana:soy"}},
|
|
}
|
|
},
|
|
drawtype = "plantlike",
|
|
paramtype2 = "facedir",
|
|
tiles = {"cucina_vegana_soy_8.png"},
|
|
groups = {chopspy=2, oddly_breakable_by_hand=3, 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
|
|
},
|
|
},
|
|
})
|
|
|
|
-- Crafting Recipe to get additional Seeds (Default: additional_seed = false).
|
|
if(cucina_vegana.additional_seeds) then
|
|
|
|
minetest.register_craft({
|
|
output = "cucina_vegana:seed_soy 4",
|
|
recipe = {
|
|
{"cucina_vegana:soy"}
|
|
}
|
|
})
|
|
|
|
end -- if(additional_seeds)
|
|
|
|
minetest.register_alias("soy:wild_soy", "cucina_vegana:wild_soy")
|
|
minetest.register_alias("soy:soy", "cucina_vegana:soy")
|
|
minetest.register_alias("soy:seed_soy", "cucina_vegana:seed_soy") |