Only mod farming is needed, farming_redo supports automatically farming.

This commit is contained in:
= 2018-05-15 22:38:15 +02:00
parent a3f297717f
commit 4629cdd3ef
29 changed files with 376 additions and 1416 deletions

View File

@ -17,3 +17,40 @@ minetest.register_decoration({
decoration = "cucina_vegana:wild_asparagus",
})
-- asparagus
farming.register_plant("cucina_vegana:asparagus", {
description = "Asparagus Seed",
inventory_image = "cucina_vegana_asparagus_seed.png",
steps = 6,
minlight = 11,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_asparagus", {
description = "Wild Asparagus",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_asparagus 3"}},
{items = {"cucina_vegana:asparagus"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_asparagus_6.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
},
},
})
-- Compatibitily for older Versions
minetest.register_alias("cucina_vegana:asparagus_seed", "cucina_vegana:seed_asparagus")

View File

@ -1,34 +0,0 @@
-- asparagus
farming.register_plant("cucina_vegana:asparagus", {
description = "Asparagus Seed",
inventory_image = "cucina_vegana_asparagus_seed.png",
steps = 6,
minlight = 11,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_asparagus", {
description = "Wild Asparagus",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_asparagus 3"}},
{items = {"cucina_vegana:asparagus"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_asparagus_6.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
},
},
})

View File

@ -1,109 +0,0 @@
-- asparagus
minetest.register_node("cucina_vegana:asparagus_seed", {
description = "Asparagus Seed",
tiles = {"cucina_vegana_asparagus_seed.png"},
inventory_image = "cucina_vegana_asparagus_seed.png",
wield_image = "cucina_vegana_asparagus_seed.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = farming.select,
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "cucina_vegana:asparagus_1")
end,
})
minetest.register_craftitem("cucina_vegana:asparagus", {
description = "Asparagus",
inventory_image = "cucina_vegana_asparagus.png",
groups = {flammable = 4},
})
-- asparagus definition
local crop_def = {
drawtype = "plantlike",
tiles = {"cucina_vegana_asparagus_1.png"},
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
drop = "",
selection_box = farming.select,
groups = {
flammable = 4, snappy=3, dig_immediate=1, plant = 1, attached_node = 1,
not_in_creative_inventory = 1, growing = 1
},
sounds = default.node_sound_leaves_defaults()
}
-- stage 1
minetest.register_node("cucina_vegana:asparagus_1", table.copy(crop_def))
-- stage 2
crop_def.tiles = {"cucina_vegana_asparagus_2.png"}
minetest.register_node("cucina_vegana:asparagus_2", table.copy(crop_def))
-- stage 3
crop_def.tiles = {"cucina_vegana_asparagus_3.png"}
minetest.register_node("cucina_vegana:asparagus_3", table.copy(crop_def))
-- stage 4
crop_def.tiles = {"cucina_vegana_asparagus_4.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:asparagus_seed"}, rarity = 2},
}
}
minetest.register_node("cucina_vegana:asparagus_4", table.copy(crop_def))
-- stage 5
crop_def.tiles = {"cucina_vegana_asparagus_5.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:asparagus_seed"}, rarity = 1},
{items = {"cucina_vegana:asparagus_seed"}, rarity = 2},
{items = {"cucina_vegana:asparagus"}, rarity = 3}
}
}
minetest.register_node("cucina_vegana:asparagus_5", table.copy(crop_def))
-- stage 6
crop_def.tiles = {"cucina_vegana_asparagus_6.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:asparagus"}, rarity = 1},
{items = {"cucina_vegana:asparagus"}, rarity = 2},
{items = {"cucina_vegana:asparagus"}, rarity = 3},
{items = {"cucina_vegana:asparagus_seed"}, rarity = 1},
{items = {"cucina_vegana:asparagus_seed"}, rarity = 1},
{items = {"cucina_vegana:asparagus_seed"}, rarity = 3},
}
}
minetest.register_node("cucina_vegana:asparagus_6", table.copy(crop_def))
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_asparagus", {
description = "Wild Asparagus",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:asparagus_seed 3"}},
{items = {"cucina_vegana:asparagus"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_asparagus_6.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
},
},
})

View File

@ -19,9 +19,46 @@ minetest.register_decoration({
})
minetest.register_craftitem("cucina_vegana:chives", {
description = "Chives",
description = "Chives Seed",
inventory_image = "cucina_vegana_chives.png",
groups = {flammable = 1, food = 1, eatable = 1},
on_use = minetest.item_eat(1),
})
-- chives
farming.register_plant("cucina_vegana:chives", {
description = "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 = "Wild Chives",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_chives 3"}},
{items = {"cucina_vegana:chives"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
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
},
},
})
-- Compatibitily for older Versions
minetest.register_alias("cucina_vegana:chives_seed", "cucina_vegana:seed_chives")

View File

@ -1,34 +0,0 @@
-- chives
farming.register_plant("cucina_vegana:chives", {
description = "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 = "Wild Chives",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_chives 3"}},
{items = {"cucina_vegana:chives"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
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
},
},
})

View File

@ -1,99 +0,0 @@
-- chives
minetest.register_node("cucina_vegana:chives_seed", {
description = "Chives Seed",
tiles = {"cucina_vegana_chives_seed.png"},
inventory_image = "cucina_vegana_chives_seed.png",
wield_image = "cucina_vegana_chives_seed.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = farming.select,
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "cucina_vegana:chives_1")
end,
})
minetest.register_craftitem("cucina_vegana:chives", {
description = "Chives",
inventory_image = "cucina_vegana_chives.png",
groups = {flammable = 4},
})
-- chives definition
local crop_def = {
drawtype = "plantlike",
tiles = {"cucina_vegana_chives_1.png"},
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
drop = "",
selection_box = farming.select,
groups = {
flammable = 4, snappy=3, dig_immediate=1, plant = 1, attached_node = 1,
not_in_creative_inventory = 1, growing = 1
},
sounds = default.node_sound_leaves_defaults()
}
-- stage 1
minetest.register_node("cucina_vegana:chives_1", table.copy(crop_def))
-- stage 2
crop_def.tiles = {"cucina_vegana_chives_2.png"}
minetest.register_node("cucina_vegana:chives_2", table.copy(crop_def))
-- stage 3
crop_def.tiles = {"cucina_vegana_chives_3.png"}
minetest.register_node("cucina_vegana:chives_3", table.copy(crop_def))
-- stage 4
crop_def.tiles = {"cucina_vegana_chives_4.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:chives_seed"}, rarity = 2},
}
}
minetest.register_node("cucina_vegana:chives_4", table.copy(crop_def))
-- stage 5
crop_def.tiles = {"cucina_vegana_chives_5.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:chives"}, rarity = 1},
{items = {"cucina_vegana:chives"}, rarity = 2},
{items = {"cucina_vegana:chives"}, rarity = 3},
{items = {"cucina_vegana:chives_seed"}, rarity = 1},
{items = {"cucina_vegana:chives_seed"}, rarity = 1},
{items = {"cucina_vegana:chives_seed"}, rarity = 3},
}
}
minetest.register_node("cucina_vegana:chives_5", table.copy(crop_def))
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_chives", {
description = "Wild Chives",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:chives_seed 3"}},
{items = {"cucina_vegana:chives"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
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
},
},
})

View File

@ -3,10 +3,6 @@
*** cucina vegana ***
**********************************************
If you want use cucina vegana with farming_redo from TenPlus, then set
farming_default = false
else true.
if you want to add a Recipt to get additional Soy-Seeds, then set
additional_seed = true
else false.
@ -15,17 +11,8 @@
local plants = {}
cucina_vegana_farming_default = true
local modpath = minetest.get_modpath(minetest.get_current_modname())
-- looking if farming_redo is activ?
if(farming.mod ~= nil and farming.mod == "redo") then
cucina_vegana_farming_default = false
end
plants = {
["soy"] = true,
@ -41,25 +28,11 @@ plants = {
}
-- Load all flowers in default-mode
for pname, value in pairs(plants) do
if(value) then
if (cucina_vegana_farming_default) then
dofile(modpath .. "/" .. pname .. "_default.lua")
dofile(modpath .. "/".. pname .. ".lua")
else
dofile(modpath .. "/" .. pname .. "_redo.lua")
dofile(modpath .. "/".. pname .. ".lua")
end -- if(cucina_vegana...)
end -- if(value)
dofile(modpath .. "/".. pname .. ".lua")
print("[MOD] " .. minetest.get_current_modname() .. " Module: " .. pname .. " loaded.")
end -- for
-- Insert Recipes
@ -111,12 +84,5 @@ if (minetest.get_modpath("technic")) then
end
if (cucina_vegana_farming_default) then
print("[MOD] " .. minetest.get_current_modname() .. " in default-mode loaded.")
print("[MOD] " .. minetest.get_current_modname() .. " in default-mode loaded.")
else
print("[MOD] " .. minetest.get_current_modname() .. " in redo-mode loaded.")
end

View File

@ -15,6 +15,47 @@ minetest.register_decoration({
decoration = "cucina_vegana:wild_kohlrabi",
})
-- kohlrabi
farming.register_plant("cucina_vegana:kohlrabi", {
description = "Kohlrabi Seed",
inventory_image = "cucina_vegana_kohlrabi_seed.png",
steps = 6,
minlight = 13,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_kohlrabi", {
description = "Wild kohlrabi",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_kohlrabi 3"}},
{items = {"cucina_vegana:kohlrabi"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_kohlrabi_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
},
},
})
-- Compatibitily for older Versions
minetest.register_alias("cucina_vegana:kohlrabi_seed", "cucina_vegana:seed_kohlrabi")
minetest.register_alias("kohlrabi:kohlrabi", "cucina_vegana:kohlrabi")
minetest.register_alias("kohlrabi:seed", "cucina_vegana:seed_kohlrabi")
minetest.register_alias("kohlrabi:wild_kohlrabi", "cucina_vegana:wild_kohlrabi")
minetest.register_alias("kohlrabi:kohlrabi_roasted", "cucina_vegana:kohlrabi_roasted")
minetest.register_alias("kohlrabi:soup", "cucina_vegana:kohlrabi_soup")
minetest.register_alias("kohlrabi:soup_cooked", "cucina_vegana:kohlrabi_soup_cooked")

View File

@ -1,38 +0,0 @@
-- kohlrabi
farming.register_plant("cucina_vegana:kohlrabi", {
description = "Kohlrabi",
inventory_image = "cucina_vegana_kohlrabi_seed.png",
steps = 6,
minlight = 13,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_kohlrabi", {
description = "Wild kohlrabi",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_kohlrabi 3"}},
{items = {"cucina_vegana:kohlrabi"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_kohlrabi_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
},
},
})
minetest.register_alias("kohlrabi:kohlrabi", "cucina_vegana:kohlrabi")
minetest.register_alias("kohlrabi:seed", "cucina_vegana:kohlrabi_seed")
minetest.register_alias("kohlrabi:wild_kohlrabi", "cucina_vegana:wild_kohlrabi")

View File

@ -1,123 +0,0 @@
-- kohlrabi
minetest.register_node("cucina_vegana:kohlrabi_seed", {
description = "Kohlrabi Seed",
tiles = {"cucina_vegana_kohlrabi_seed.png"},
inventory_image = "cucina_vegana_kohlrabi_seed.png",
wield_image = "cucina_vegana_kohlrabi_seed.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = farming.select,
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "cucina_vegana:kohlrabi_1")
end,
})
minetest.register_craftitem("cucina_vegana:kohlrabi", {
description = "Kohlrabi",
inventory_image = "cucina_vegana_kohlrabi.png",
groups = {flammable = 4},
})
-- kohlrabi definition
local crop_def = {
drawtype = "plantlike",
tiles = {"cucina_vegana_kohlrabi_1.png"},
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
drop = "",
selection_box = farming.select,
groups = {
flammable = 4, snappy=3, dig_immediate=1, plant = 1, attached_node = 1,
not_in_creative_inventory = 1, growing = 1
},
sounds = default.node_sound_leaves_defaults()
}
-- stage 1
minetest.register_node("cucina_vegana:kohlrabi_1", table.copy(crop_def))
-- stage 2
crop_def.tiles = {"cucina_vegana_kohlrabi_2.png"}
minetest.register_node("cucina_vegana:kohlrabi_2", table.copy(crop_def))
-- stage 3
crop_def.tiles = {"cucina_vegana_kohlrabi_3.png"}
minetest.register_node("cucina_vegana:kohlrabi_3", table.copy(crop_def))
-- stage 4
crop_def.tiles = {"cucina_vegana_kohlrabi_4.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:kohlrabi_seed"}, rarity = 2},
}
}
minetest.register_node("cucina_vegana:kohlrabi_4", table.copy(crop_def))
-- stage 5
crop_def.tiles = {"cucina_vegana_kohlrabi_5.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:kohlrabi_seed"}, rarity = 1},
{items = {"cucina_vegana:kohlrabi_seed"}, rarity = 2},
{items = {"cucina_vegana:kohlrabi"}, rarity = 3}
}
}
minetest.register_node("cucina_vegana:kohlrabi_5", table.copy(crop_def))
-- stage 6
crop_def.tiles = {"cucina_vegana_kohlrabi_6.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:kohlrabi"}, rarity = 1},
{items = {"cucina_vegana:kohlrabi"}, rarity = 2},
{items = {"cucina_vegana:kohlrabi"}, rarity = 3},
{items = {"cucina_vegana:kohlrabi_seed"}, rarity = 1},
{items = {"cucina_vegana:kohlrabi_seed"}, rarity = 1},
{items = {"cucina_vegana:kohlrabi_seed"}, rarity = 3},
}
}
minetest.register_node("cucina_vegana:kohlrabi_6", table.copy(crop_def))
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_kohlrabi", {
description = "Wild Kohlrabi",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:kohlrabi_seed 3"}},
{items = {"cucina_vegana:kohlrabi"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_kohlrabi_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
},
},
})
-- to import the old mod in cucina_vegana
-- can deleted if you have a clean world.
minetest.register_alias("kohlrabi:kohlrabi_1", "cucina_vegana:kohlrabi_1")
minetest.register_alias("kohlrabi:kohlrabi_2", "cucina_vegana:kohlrabi_2")
minetest.register_alias("kohlrabi:kohlrabi_3", "cucina_vegana:kohlrabi_3")
minetest.register_alias("kohlrabi:kohlrabi_4", "cucina_vegana:kohlrabi_4")
minetest.register_alias("kohlrabi:kohlrabi_5", "cucina_vegana:kohlrabi_5")
minetest.register_alias("kohlrabi:kohlrabi", "cucina_vegana:kohlrabi")
minetest.register_alias("kohlrabi:seed", "cucina_vegana:kohlrabi_seed")
minetest.register_alias("kohlrabi:wild_kohlrabi", "cucina_vegana:wild_kohlrabi")

View File

@ -16,23 +16,47 @@ minetest.register_decoration({
decoration = "cucina_vegana:wild_lettuce",
})
minetest.register_node("cucina_vegana:lettuce_oil", {
description = "Salad Oil",
drawtype = "plantlike",
tiles = {"cucina_vegana_lettuce_oil.png"},
inventory_image = "cucina_vegana_lettuce_oil.png",
wield_image = "cucina_vegana_lettuce_oil.png",
paramtype = "light",
is_ground_content = false,
on_use = minetest.item_eat(2, "vessels:glass_bottle"),
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
},
groups = {dig_immediate = 3, attached_node = 1, food_oil=1},
sounds = default.node_sound_glass_defaults(),
-- lettuce
farming.register_plant("cucina_vegana:lettuce", {
description = "Lettuce Seed",
inventory_image = "cucina_vegana_lettuce_seed.png",
steps = 5,
minlight = 12,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_lettuce", {
description = "Wild Lettuce",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_lettuce 3"}},
{items = {"cucina_vegana:lettuce"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_lettuce_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
},
},
})
-- Compatibitily for older Versions
minetest.register_alias("cucina_vegana:lettuce_seed", "cucina_vegana:seed_lettuce")
minetest.register_alias("lettuce:lettuce", "cucina_vegana:lettuce")
minetest.register_alias("lettuce:seed", "cucina_vegana:seed_lettuce")
minetest.register_alias("lettuce:wild_lettuce", "cucina_vegana:wild_lettuce")
minetest.register_alias("lettuce:bowl", "cucina_vegana:salad_bowl")
minetest.register_alias("lettuce:oil", "cucina_vegana:lettuce_oil")

View File

@ -1,38 +0,0 @@
-- lettuce
farming.register_plant("cucina_vegana:lettuce", {
description = "Lettuce",
inventory_image = "cucina_vegana_lettuce_seed.png",
steps = 5,
minlight = 12,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_lettuce", {
description = "Wild Lettuce",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_lettuce 3"}},
{items = {"cucina_vegana:lettuce"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_lettuce_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
},
},
})
minetest.register_alias("lettuce:lettuce", "cucina_vegana:lettuce")
minetest.register_alias("lettuce:seed", "cucina_vegana:lettuce_seed")
minetest.register_alias("lettuce:wild_lettuce", "cucina_vegana:wild_lettuce")

View File

@ -1,111 +0,0 @@
-- lettuce
minetest.register_node("cucina_vegana:lettuce_seed", {
description = "Lettuce Seed",
tiles = {"cucina_vegana_lettuce_seed.png"},
inventory_image = "cucina_vegana_lettuce_seed.png",
wield_image = "cucina_vegana_lettuce_seed.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = farming.select,
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "cucina_vegana:lettuce_1")
end,
})
minetest.register_craftitem("cucina_vegana:lettuce", {
description = "Lettuce",
inventory_image = "cucina_vegana_lettuce.png",
groups = {flammable = 4},
})
-- lettuce definition
local crop_def = {
drawtype = "plantlike",
tiles = {"cucina_vegana_lettuce_1.png"},
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
drop = "",
selection_box = farming.select,
groups = {
flammable = 4, snappy=3, dig_immediate=1, plant = 1, attached_node = 1,
not_in_creative_inventory = 1, growing = 1
},
sounds = default.node_sound_leaves_defaults()
}
-- stage 1
minetest.register_node("cucina_vegana:lettuce_1", table.copy(crop_def))
-- stage 2
crop_def.tiles = {"cucina_vegana_lettuce_2.png"}
minetest.register_node("cucina_vegana:lettuce_2", table.copy(crop_def))
-- stage 3
crop_def.tiles = {"cucina_vegana_lettuce_3.png"}
minetest.register_node("cucina_vegana:lettuce_3", table.copy(crop_def))
-- stage 4
crop_def.tiles = {"cucina_vegana_lettuce_4.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:lettuce_seed"}, rarity = 2},
}
}
minetest.register_node("cucina_vegana:lettuce_4", table.copy(crop_def))
-- stage 5
crop_def.tiles = {"cucina_vegana_lettuce_5.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:lettuce"}, rarity = 1},
{items = {"cucina_vegana:lettuce"}, rarity = 3},
{items = {"cucina_vegana:lettuce_seed"}, rarity = 1},
{items = {"cucina_vegana:lettuce_seed"}, rarity = 1},
{items = {"cucina_vegana:lettuce_seed"}, rarity = 3},
}
}
minetest.register_node("cucina_vegana:lettuce_5", table.copy(crop_def))
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_lettuce", {
description = "Wild Lettuce",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:lettuce_seed 3"}},
{items = {"cucina_vegana:lettuce"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_lettuce_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
},
},
})
-- to import the old mod in cucina_vegana
-- can deleted if you have a clean world.
minetest.register_alias("lettuce:lettuce_1", "cucina_vegana:lettuce_1")
minetest.register_alias("lettuce:lettuce_2", "cucina_vegana:lettuce_2")
minetest.register_alias("lettuce:lettuce_3", "cucina_vegana:lettuce_3")
minetest.register_alias("lettuce:lettuce_4", "cucina_vegana:lettuce_4")
minetest.register_alias("lettuce:lettuce_5", "cucina_vegana:lettuce_5")
minetest.register_alias("lettuce:lettuce", "cucina_vegana:lettuce")
minetest.register_alias("lettuce:seed", "cucina_vegana:lettuce_seed")
minetest.register_alias("lettuce:wild_lettuce", "cucina_vegana:wild_lettuce")

View File

@ -2,6 +2,24 @@
-- ***** Nodes *****
-- *******************************************
minetest.register_node("cucina_vegana:lettuce_oil", {
description = "Salad Oil",
drawtype = "plantlike",
tiles = {"cucina_vegana_lettuce_oil.png"},
inventory_image = "cucina_vegana_lettuce_oil.png",
wield_image = "cucina_vegana_lettuce_oil.png",
paramtype = "light",
is_ground_content = false,
on_use = minetest.item_eat(2, "vessels:glass_bottle"),
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
},
groups = {dig_immediate = 3, attached_node = 1, food_oil=1},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_node("cucina_vegana:plate", {
description = "Plate",
drawtype = "plantlike",

View File

@ -15,3 +15,45 @@ minetest.register_decoration({
y_max = 100,
decoration = "cucina_vegana:wild_parsley",
})
-- Parsley
farming.register_plant("cucina_vegana:parsley", {
description = "Parsley Seed",
inventory_image = "cucina_vegana_parsley_seed.png",
steps = 5,
minlight = 11,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_parsley", {
description = "Wild Parsley",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_parsley 3"}},
{items = {"cucina_vegana:parsley"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_parsley_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
},
},
})
minetest.register_alias("parsley:parsley", "cucina_vegana:parsley")
minetest.register_alias("parsley:seed", "cucina_vegana:parsley_seed")
minetest.register_alias("parsley:wild_parsley", "cucina_vegana:wild_parsley")
-- Compatibitily for older Versions
minetest.register_alias("cucina_vegana:parsley_seed", "cucina_vegana:seed_parsley")

View File

@ -1,38 +0,0 @@
-- Parsley
farming.register_plant("cucina_vegana:parsley", {
description = "Parsley",
inventory_image = "cucina_vegana_parsley_seed.png",
steps = 5,
minlight = 11,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_parsley", {
description = "Wild Parsley",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_parsley 3"}},
{items = {"cucina_vegana:parsley"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_parsley_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
},
},
})
minetest.register_alias("parsley:parsley", "cucina_vegana:parsley")
minetest.register_alias("parsley:seed", "cucina_vegana:parsley_seed")
minetest.register_alias("parsley:wild_parsley", "cucina_vegana:wild_parsley")

View File

@ -1,113 +0,0 @@
-- Parsley
minetest.register_node("cucina_vegana:parsley_seed", {
description = "Parsley Seed",
tiles = {"cucina_vegana_parsley_seed.png"},
inventory_image = "cucina_vegana_parsley_seed.png",
wield_image = "cucina_vegana_parsley_seed.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4, attached_node = 1},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = farming.select,
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "cucina_vegana:parsley_1")
end,
})
minetest.register_craftitem("cucina_vegana:parsley", {
description = "Parsley",
inventory_image = "cucina_vegana_parsley.png",
groups = {flammable = 4},
})
-- Parsley definition
local crop_def = {
drawtype = "plantlike",
tiles = {"cucina_vegana_parsley_1.png"},
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
drop = "",
selection_box = farming.select,
groups = {
flammable = 4, snappy=3, dig_immediate=1, plant = 1, attached_node = 1,
not_in_creative_inventory = 1, growing = 1
},
sounds = default.node_sound_leaves_defaults()
}
-- stage 1
minetest.register_node("cucina_vegana:parsley_1", table.copy(crop_def))
-- stage 2
crop_def.tiles = {"cucina_vegana_parsley_2.png"}
minetest.register_node("cucina_vegana:parsley_2", table.copy(crop_def))
-- stage 3
crop_def.tiles = {"cucina_vegana_parsley_3.png"}
minetest.register_node("cucina_vegana:parsley_3", table.copy(crop_def))
-- stage 4
crop_def.tiles = {"cucina_vegana_parsley_4.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:parsley"}, rarity = 1},
{items = {"cucina_vegana:parsley_seed"}, rarity = 2},
}
}
minetest.register_node("cucina_vegana:parsley_4", table.copy(crop_def))
-- stage 5
crop_def.tiles = {"cucina_vegana_parsley_5.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:parsley"}, rarity = 1},
{items = {"cucina_vegana:parsley"}, rarity = 1},
{items = {"cucina_vegana:parsley"}, rarity = 3},
{items = {"cucina_vegana:parsley_seed"}, rarity = 1},
{items = {"cucina_vegana:parsley_seed"}, rarity = 1},
{items = {"cucina_vegana:parsley_seed"}, rarity = 3},
}
}
minetest.register_node("cucina_vegana:parsley_5", table.copy(crop_def))
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_parsley", {
description = "Wild Parsley",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:parsley_seed 3"}},
{items = {"cucina_vegana:parsley"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_parsley_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
},
},
})
-- to import the old mod in cucina_vegana
-- can deleted if you have a clean world.
minetest.register_alias("parsley:parsley_1", "cucina_vegana:parsley_1")
minetest.register_alias("parsley:parsley_2", "cucina_vegana:parsley_2")
minetest.register_alias("parsley:parsley_3", "cucina_vegana:parsley_3")
minetest.register_alias("parsley:parsley_4", "cucina_vegana:parsley_4")
minetest.register_alias("parsley:parsley_5", "cucina_vegana:parsley_5")
minetest.register_alias("parsley:parsley", "cucina_vegana:parsley")
minetest.register_alias("parsley:seed", "cucina_vegana:parsley_seed")
minetest.register_alias("parsley:wild_parsley", "cucina_vegana:wild_parsley")

View File

@ -17,3 +17,41 @@ minetest.register_decoration({
decoration = "cucina_vegana:wild_rice",
})
-- Rice
farming.register_plant("cucina_vegana:rice", {
description = "Rice Seed",
inventory_image = "cucina_vegana_rice_seed.png",
steps = 6,
minlight = 12,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_rice", {
description = "Wild Rice",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_rice 3"}},
{items = {"cucina_vegana:rice"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_rice_6.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
},
},
})
-- Compatibitily for older Versions
minetest.register_alias("cucina_vegana:rice_seed", "cucina_vegana:seed_rice")

View File

@ -1,34 +0,0 @@
-- asparagus
farming.register_plant("cucina_vegana:rice", {
description = "Rice Seed",
inventory_image = "cucina_vegana_rice_seed.png",
steps = 6,
minlight = 12,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_rice", {
description = "Wild Rice",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_rice 3"}},
{items = {"cucina_vegana:rice"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_rice_6.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
},
},
})

View File

@ -1,109 +0,0 @@
-- rice
minetest.register_node("cucina_vegana:rice_seed", {
description = "Rice Seed",
tiles = {"cucina_vegana_rice_seed.png"},
inventory_image = "cucina_vegana_rice_seed.png",
wield_image = "cucina_vegana_rice_seed.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = farming.select,
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "cucina_vegana:rice_1")
end,
})
minetest.register_craftitem("cucina_vegana:rice", {
description = "Rice",
inventory_image = "cucina_vegana_rice.png",
groups = {flammable = 4},
})
-- rice definition
local crop_def = {
drawtype = "plantlike",
tiles = {"cucina_vegana_rice_1.png"},
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
drop = "",
selection_box = farming.select,
groups = {
flammable = 4, snappy=3, dig_immediate=1, plant = 1, attached_node = 1,
not_in_creative_inventory = 1, growing = 1
},
sounds = default.node_sound_leaves_defaults()
}
-- stage 1
minetest.register_node("cucina_vegana:rice_1", table.copy(crop_def))
-- stage 2
crop_def.tiles = {"cucina_vegana_rice_2.png"}
minetest.register_node("cucina_vegana:rice_2", table.copy(crop_def))
-- stage 3
crop_def.tiles = {"cucina_vegana_rice_3.png"}
minetest.register_node("cucina_vegana:rice_3", table.copy(crop_def))
-- stage 4
crop_def.tiles = {"cucina_vegana_rice_4.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:rice_seed"}, rarity = 2},
}
}
minetest.register_node("cucina_vegana:rice_4", table.copy(crop_def))
-- stage 5
crop_def.tiles = {"cucina_vegana_rice_5.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:rice_seed"}, rarity = 1},
{items = {"cucina_vegana:rice_seed"}, rarity = 2},
{items = {"cucina_vegana:rice"}, rarity = 3}
}
}
minetest.register_node("cucina_vegana:rice_5", table.copy(crop_def))
-- stage 6
crop_def.tiles = {"cucina_vegana_rice_6.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:rice"}, rarity = 1},
{items = {"cucina_vegana:rice"}, rarity = 2},
{items = {"cucina_vegana:rice"}, rarity = 3},
{items = {"cucina_vegana:rice_seed"}, rarity = 1},
{items = {"cucina_vegana:rice_seed"}, rarity = 1},
{items = {"cucina_vegana:rice_seed"}, rarity = 3},
}
}
minetest.register_node("cucina_vegana:rice_6", table.copy(crop_def))
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_rice", {
description = "Wild Rice",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:rice_seed 3"}},
{items = {"cucina_vegana:rice"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_rice_6.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
},
},
})

View File

@ -25,3 +25,40 @@ minetest.register_craftitem("cucina_vegana:rosemary", {
on_use = minetest.item_eat(1),
})
-- Compatibitily for older Versions
minetest.register_alias("cucina_vegana:rosemary_seed", "cucina_vegana:seed_rosemary")
-- rosemary
farming.register_plant("cucina_vegana:rosemary", {
description = "Rosemary Seed",
inventory_image = "cucina_vegana_rosemary_seed.png",
steps = 6,
minlight = 12,
maxlight = default.LIGHT_MAX,
fertility = {"sand", "grassland"},
groups = {flammable = 4},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_rosemary", {
description = "Wild Rosemary",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_rosemary 3"}},
{items = {"cucina_vegana:rosemary"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_rosemary_6.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
},
},
})

View File

@ -1,34 +0,0 @@
-- rosemary
farming.register_plant("cucina_vegana:rosemary", {
description = "Rosemary",
inventory_image = "cucina_vegana_rosemary_seed.png",
steps = 6,
minlight = 12,
maxlight = default.LIGHT_MAX,
fertility = {"sand", "grassland"},
groups = {flammable = 4},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_rosemary", {
description = "Wild Rosemary",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_rosemary 3"}},
{items = {"cucina_vegana:rosemary"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_rosemary_6.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
},
},
})

View File

@ -1,104 +0,0 @@
-- rosemary
minetest.register_node("cucina_vegana:rosemary_seed", {
description = "Rosemary Seed",
tiles = {"cucina_vegana_rosemary_seed.png"},
inventory_image = "cucina_vegana_rosemary_seed.png",
wield_image = "cucina_vegana_rosemary_seed.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = farming.select,
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "cucina_vegana:rosemary_1")
end,
})
-- rosemary definition
local crop_def = {
drawtype = "plantlike",
tiles = {"cucina_vegana_rosemary_1.png"},
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
drop = "",
selection_box = farming.select,
groups = {
flammable = 4, snappy=3, dig_immediate=1, plant = 1, attached_node = 1,
not_in_creative_inventory = 1, growing = 1
},
sounds = default.node_sound_leaves_defaults()
}
-- stage 1
minetest.register_node("cucina_vegana:rosemary_1", table.copy(crop_def))
-- stage 2
crop_def.tiles = {"cucina_vegana_rosemary_2.png"}
minetest.register_node("cucina_vegana:rosemary_2", table.copy(crop_def))
-- stage 3
crop_def.tiles = {"cucina_vegana_rosemary_3.png"}
minetest.register_node("cucina_vegana:rosemary_3", table.copy(crop_def))
-- stage 4
crop_def.tiles = {"cucina_vegana_rosemary_4.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:rosemary_seed"}, rarity = 2},
}
}
minetest.register_node("cucina_vegana:rosemary_4", table.copy(crop_def))
-- stage 5
crop_def.tiles = {"cucina_vegana_rosemary_5.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:rosemary"}, rarity = 1},
{items = {"cucina_vegana:rosemary_seed"}, rarity = 1},
}
}
minetest.register_node("cucina_vegana:rosemary_5", table.copy(crop_def))
-- stage 6
crop_def.tiles = {"cucina_vegana_rosemary_6.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:rosemary"}, rarity = 1},
{items = {"cucina_vegana:rosemary"}, rarity = 2},
{items = {"cucina_vegana:rosemary"}, rarity = 3},
{items = {"cucina_vegana:rosemary_seed"}, rarity = 1},
{items = {"cucina_vegana:rosemary_seed"}, rarity = 1},
{items = {"cucina_vegana:rosemary_seed"}, rarity = 3},
}
}
minetest.register_node("cucina_vegana:rosemary_6", table.copy(crop_def))
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_rosemary", {
description = "Wild Rosemary",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:rosemary_seed 3"}},
{items = {"cucina_vegana:rosemary"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_rosemary_6.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
},
},
})

39
soy.lua
View File

@ -15,7 +15,46 @@ minetest.register_decoration({
decoration = "cucina_vegana:wild_soy",
})
farming.register_plant("cucina_vegana:soy", {
description = "Soy Seed",
inventory_image = "cucina_vegana_soy_seed.png",
steps = 8,
minlight = 12,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1},
})
-- 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, 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
},
},
})
-- Compatibitily for older Versions
minetest.register_alias("cucina_vegana:soy_seed", "cucina_vegana:seed_soy")
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")
minetest.register_alias("soy:tofu", "cucina_vegana:tofu")
minetest.register_alias("soy:tofu_cooked", "cucina_vegana:tofu_cooked")
minetest.register_alias("soy:milk", "cucina_vegana:soy_milk")

View File

@ -1,44 +0,0 @@
--[[
**********************************************
*** Soy default ***
**********************************************
]]--
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, attached_node = 1},
})
-- 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, 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
},
},
})
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")

View File

@ -1,146 +0,0 @@
--[[
**********************************************
*** Soy redo ***
**********************************************
]]--
minetest.register_node("cucina_vegana:soy_seed", {
description = "Soy Seed",
tiles = {"cucina_vegana_soy_seed.png"},
inventory_image = "cucina_vegana_soy_seed.png",
wield_image = "cucina_vegana_soy_seed.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_node = 1, flammable = 4},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = farming.select,
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "cucina_vegana:soy_1")
end,
})
minetest.register_craftitem("cucina_vegana:soy", {
description = "Soy Bean",
inventory_image = "cucina_vegana_soy.png",
groups = {flammable = 4},
})
-- Soy definition
local crop_def = {
drawtype = "plantlike",
tiles = {"cucina_vegana_soy_1.png"},
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
drop = "",
selection_box = farming.select,
groups = {
snappy = 3, flammable = 4, plant = 1, attached_node = 1,
not_in_creative_inventory = 1, growing = 1
},
sounds = default.node_sound_leaves_defaults()
}
-- stage 1
minetest.register_node("cucina_vegana:soy_1", table.copy(crop_def))
-- stage 2
crop_def.tiles = {"cucina_vegana_soy_2.png"}
minetest.register_node("cucina_vegana:soy_2", table.copy(crop_def))
-- stage 3
crop_def.tiles = {"cucina_vegana_soy_3.png"}
minetest.register_node("cucina_vegana:soy_3", table.copy(crop_def))
-- stage 4
crop_def.tiles = {"cucina_vegana_soy_4.png"}
minetest.register_node("cucina_vegana:soy_4", table.copy(crop_def))
-- stage 5
crop_def.tiles = {"cucina_vegana_soy_5.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:soy_seed"}, rarity = 1},
}
}
minetest.register_node("cucina_vegana:soy_5", table.copy(crop_def))
-- stage 6
crop_def.tiles = {"cucina_vegana_soy_6.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:soy_seed"}, rarity = 1},
{items = {"cucina_vegana:soy"}, rarity = 2},
} }
minetest.register_node("cucina_vegana:soy_6", table.copy(crop_def))
-- stage 7
crop_def.tiles = {"cucina_vegana_soy_7.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:soy"}, rarity = 1},
{items = {"cucina_vegana:soy"}, rarity = 2},
{items = {"cucina_vegana:soy_seed"}, rarity = 1},
{items = {"cucina_vegana:soy_seed"}, rarity = 2},
}
}
minetest.register_node("cucina_vegana:soy_7", table.copy(crop_def))
-- stage 8 (final)
crop_def.tiles = {"cucina_vegana_soy_8.png"}
crop_def.groups.growing = 0
crop_def.drop = {
items = {
{items = {"cucina_vegana:soy"}, rarity = 1},
{items = {"cucina_vegana:soy"}, rarity = 2},
{items = {"cucina_vegana:soy"}, rarity = 3},
{items = {"cucina_vegana:soy_seed"}, rarity = 1},
{items = {"cucina_vegana:soy_seed"}, rarity = 2},
{items = {"cucina_vegana:soy_seed"}, rarity = 3},
}
}
minetest.register_node("cucina_vegana:soy_8", table.copy(crop_def))
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_soy", {
description = "Wild Soy",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:soy_seed 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, 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
},
},
})
-- to import the old mod in cucina_vegana
-- can deleted if you have a clean world.
minetest.register_alias("soy:soy_1", "cucina_vegana:soy_1")
minetest.register_alias("soy:soy_2", "cucina_vegana:soy_2")
minetest.register_alias("soy:soy_3", "cucina_vegana:soy_3")
minetest.register_alias("soy:soy_4", "cucina_vegana:soy_4")
minetest.register_alias("soy:soy_5", "cucina_vegana:soy_5")
minetest.register_alias("soy:soy_6", "cucina_vegana:soy_6")
minetest.register_alias("soy:soy_7", "cucina_vegana:soy_7")
minetest.register_alias("soy:soy_8", "cucina_vegana:soy_8")
minetest.register_alias("soy:seed", "cucina_vegana:soy_seed")
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")

View File

@ -29,17 +29,54 @@ else
minetest.register_alias("flowers:sunflower", "cucina_vegana:sunflower")
if (cucina_vegana_farming_default) then
--if (cucina_vegana_farming_default) then
dofile(modpath .. "/sunflower_default.lua")
--dofile(modpath .. "/sunflower_default.lua")
else
--else
dofile(modpath .. "/sunflower_redo.lua")
--dofile(modpath .. "/sunflower_redo.lua")
end
--end
end
farming.register_plant("cucina_vegana:sunflower", {
description = "Sunflower Seed",
inventory_image = "cucina_vegana_sunflower_seed.png",
steps = 5,
minlight = 13,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_sunflower", {
description = "Wild Sunflower",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_sunflower 2"}},
{items = {"cucina_vegana:sunflower"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_sunflower_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
},
},
})
-- Compatibitily for older Versions
minetest.register_alias("cucina_vegana:sunflower_seed", "cucina_vegana:seed_sunflower")
end -- if(minetest.registered_nodes["flowers:sunflower"] ~= nil
-- to import the old mod in cucina_vegana
-- can deleted if you have a clean world.

View File

@ -1,43 +0,0 @@
local modpath = minetest.get_modpath(minetest.get_current_modname())
if(minetest.registered_nodes["flowers:sunflower"] ~= nil) then
print("[MOD] " .. minetest.get_current_modname() .. " Sunflowers available.")
print("[MOD] " .. minetest.get_current_modname() .. " using \"flowers:sunflower\".")
else
farming.register_plant("cucina_vegana:sunflower", {
description = "Sunflower Seed",
inventory_image = "cucina_vegana_sunflower_seed.png",
steps = 5,
minlight = 13,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4},
})
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_sunflower", {
description = "Wild Sunflower",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:seed_sunflower 2"}},
{items = {"cucina_vegana:sunflower"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_sunflower_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
},
},
})
end

View File

@ -1,105 +0,0 @@
local modpath = minetest.get_modpath(minetest.get_current_modname())
if(minetest.registered_nodes["flowers:sunflower"] ~= nil) then
print("[MOD] " .. minetest.get_current_modname() .. " Sunflowers available.")
print("[MOD] " .. minetest.get_current_modname() .. " using \"flowers:sunflower\".")
else
minetest.register_node("cucina_vegana:sunflower_seed", {
description = "Sunflower Seed",
tiles = {"cucina_vegana_sunflower_seed.png"},
inventory_image = "cucina_vegana_sunflower_seed.png",
wield_image = "cucina_vegana_sunflower_seed.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = farming.select,
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "cucina_vegana:sunflower_1")
end,
})
minetest.register_craftitem("cucina_vegana:sunflower", {
description = "Sunflower",
inventory_image = "cucina_vegana_sunflower.png",
groups = {flammable = 4},
})
-- sunflower definition
local crop_def = {
drawtype = "plantlike",
tiles = {"cucina_vegana_sunflower_1.png"},
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
drop = "",
selection_box = farming.select,
groups = {
flammable = 4, snappy=3, dig_immediate=1, plant = 1, attached_node = 1,
not_in_creative_inventory = 1, growing = 1
},
sounds = default.node_sound_leaves_defaults()
}
-- stage 1
minetest.register_node("cucina_vegana:sunflower_1", table.copy(crop_def))
-- stage 2
crop_def.tiles = {"cucina_vegana_sunflower_2.png"}
minetest.register_node("cucina_vegana:sunflower_2", table.copy(crop_def))
-- stage 3
crop_def.tiles = {"cucina_vegana_sunflower_3.png"}
minetest.register_node("cucina_vegana:sunflower_3", table.copy(crop_def))
-- stage 4
crop_def.tiles = {"cucina_vegana_sunflower_4.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:sunflower_seed"}, rarity = 2},
}
}
minetest.register_node("cucina_vegana:sunflower_4", table.copy(crop_def))
-- stage 5
crop_def.tiles = {"cucina_vegana_sunflower_5.png"}
crop_def.drop = {
items = {
{items = {"cucina_vegana:sunflower_seed"}, rarity = 1},
{items = {"cucina_vegana:sunflower_seed"}, rarity = 2},
{items = {"cucina_vegana:sunflower"}, rarity = 1},
{items = {"cucina_vegana:sunflower"}, rarity = 2}
}
}
minetest.register_node("cucina_vegana:sunflower_5", table.copy(crop_def))
-- Register for Mapgen
minetest.register_node("cucina_vegana:wild_sunflower", {
description = "Wild Sunflower",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {"cucina_vegana:sunflower_seed"}},
{items = {"cucina_vegana:sunflower"}},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"cucina_vegana_sunflower_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
},
},
})
end