From 4629cdd3ef92fff39ad9be8ad8568dacb377e1cf Mon Sep 17 00:00:00 2001 From: = Date: Tue, 15 May 2018 22:38:15 +0200 Subject: [PATCH] Only mod farming is needed, farming_redo supports automatically farming. --- asparagus.lua | 37 +++++++++++ asparagus_default.lua | 34 ---------- asparagus_redo.lua | 109 ------------------------------- chives.lua | 39 ++++++++++- chives_default.lua | 34 ---------- chives_redo.lua | 99 ---------------------------- init.lua | 40 +----------- kohlrabi.lua | 41 ++++++++++++ kohlrabi_default.lua | 38 ----------- kohlrabi_redo.lua | 123 ----------------------------------- lettuce.lua | 56 +++++++++++----- lettuce_default.lua | 38 ----------- lettuce_redo.lua | 111 -------------------------------- nodes.lua | 18 ++++++ parsley.lua | 42 ++++++++++++ parsley_default.lua | 38 ----------- parsley_redo.lua | 113 -------------------------------- rice.lua | 38 +++++++++++ rice_default.lua | 34 ---------- rice_redo.lua | 109 ------------------------------- rosemary.lua | 37 +++++++++++ rosemary_default.lua | 34 ---------- rosemary_redo.lua | 104 ------------------------------ soy.lua | 39 +++++++++++ soy_default.lua | 44 ------------- soy_redo.lua | 146 ------------------------------------------ sunflower.lua | 49 ++++++++++++-- sunflower_default.lua | 43 ------------- sunflower_redo.lua | 105 ------------------------------ 29 files changed, 376 insertions(+), 1416 deletions(-) delete mode 100644 asparagus_default.lua delete mode 100644 asparagus_redo.lua delete mode 100644 chives_default.lua delete mode 100644 chives_redo.lua delete mode 100644 kohlrabi_default.lua delete mode 100644 kohlrabi_redo.lua delete mode 100644 lettuce_default.lua delete mode 100644 lettuce_redo.lua delete mode 100644 parsley_default.lua delete mode 100644 parsley_redo.lua delete mode 100644 rice_default.lua delete mode 100644 rice_redo.lua delete mode 100644 rosemary_default.lua delete mode 100644 rosemary_redo.lua delete mode 100644 soy_default.lua delete mode 100644 soy_redo.lua delete mode 100644 sunflower_default.lua delete mode 100644 sunflower_redo.lua diff --git a/asparagus.lua b/asparagus.lua index 2452f24..7e8e075 100644 --- a/asparagus.lua +++ b/asparagus.lua @@ -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") \ No newline at end of file diff --git a/asparagus_default.lua b/asparagus_default.lua deleted file mode 100644 index 82f0a29..0000000 --- a/asparagus_default.lua +++ /dev/null @@ -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 - }, - }, -}) diff --git a/asparagus_redo.lua b/asparagus_redo.lua deleted file mode 100644 index 25012ba..0000000 --- a/asparagus_redo.lua +++ /dev/null @@ -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 - }, - }, - }) \ No newline at end of file diff --git a/chives.lua b/chives.lua index adb3379..27e1db8 100644 --- a/chives.lua +++ b/chives.lua @@ -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") \ No newline at end of file diff --git a/chives_default.lua b/chives_default.lua deleted file mode 100644 index 501ef93..0000000 --- a/chives_default.lua +++ /dev/null @@ -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 - }, - }, -}) diff --git a/chives_redo.lua b/chives_redo.lua deleted file mode 100644 index 64b3fe8..0000000 --- a/chives_redo.lua +++ /dev/null @@ -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 - }, - }, -}) diff --git a/init.lua b/init.lua index d50485c..11c64a1 100644 --- a/init.lua +++ b/init.lua @@ -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 diff --git a/kohlrabi.lua b/kohlrabi.lua index f08a5c5..87f9d77 100644 --- a/kohlrabi.lua +++ b/kohlrabi.lua @@ -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") \ No newline at end of file diff --git a/kohlrabi_default.lua b/kohlrabi_default.lua deleted file mode 100644 index 59129a3..0000000 --- a/kohlrabi_default.lua +++ /dev/null @@ -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") \ No newline at end of file diff --git a/kohlrabi_redo.lua b/kohlrabi_redo.lua deleted file mode 100644 index 4a97403..0000000 --- a/kohlrabi_redo.lua +++ /dev/null @@ -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") \ No newline at end of file diff --git a/lettuce.lua b/lettuce.lua index 9882c5b..c223cff 100644 --- a/lettuce.lua +++ b/lettuce.lua @@ -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") \ No newline at end of file diff --git a/lettuce_default.lua b/lettuce_default.lua deleted file mode 100644 index b5637fd..0000000 --- a/lettuce_default.lua +++ /dev/null @@ -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") \ No newline at end of file diff --git a/lettuce_redo.lua b/lettuce_redo.lua deleted file mode 100644 index 44f3379..0000000 --- a/lettuce_redo.lua +++ /dev/null @@ -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") \ No newline at end of file diff --git a/nodes.lua b/nodes.lua index bea7d84..c78e581 100644 --- a/nodes.lua +++ b/nodes.lua @@ -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", diff --git a/parsley.lua b/parsley.lua index 0699124..17a74e9 100644 --- a/parsley.lua +++ b/parsley.lua @@ -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") \ No newline at end of file diff --git a/parsley_default.lua b/parsley_default.lua deleted file mode 100644 index 71fa455..0000000 --- a/parsley_default.lua +++ /dev/null @@ -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") \ No newline at end of file diff --git a/parsley_redo.lua b/parsley_redo.lua deleted file mode 100644 index 5ba692b..0000000 --- a/parsley_redo.lua +++ /dev/null @@ -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") \ No newline at end of file diff --git a/rice.lua b/rice.lua index 0d6436f..62dfe67 100644 --- a/rice.lua +++ b/rice.lua @@ -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") + diff --git a/rice_default.lua b/rice_default.lua deleted file mode 100644 index a3999df..0000000 --- a/rice_default.lua +++ /dev/null @@ -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 - }, - }, -}) diff --git a/rice_redo.lua b/rice_redo.lua deleted file mode 100644 index fb143ee..0000000 --- a/rice_redo.lua +++ /dev/null @@ -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 - }, - }, - }) \ No newline at end of file diff --git a/rosemary.lua b/rosemary.lua index f8cdf05..98f4c9e 100644 --- a/rosemary.lua +++ b/rosemary.lua @@ -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 + }, + }, +}) diff --git a/rosemary_default.lua b/rosemary_default.lua deleted file mode 100644 index 270a1db..0000000 --- a/rosemary_default.lua +++ /dev/null @@ -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 - }, - }, -}) diff --git a/rosemary_redo.lua b/rosemary_redo.lua deleted file mode 100644 index 7c91e49..0000000 --- a/rosemary_redo.lua +++ /dev/null @@ -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 - }, - }, -}) diff --git a/soy.lua b/soy.lua index a67df46..c14ddc2 100644 --- a/soy.lua +++ b/soy.lua @@ -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") \ No newline at end of file diff --git a/soy_default.lua b/soy_default.lua deleted file mode 100644 index bfa6f18..0000000 --- a/soy_default.lua +++ /dev/null @@ -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") \ No newline at end of file diff --git a/soy_redo.lua b/soy_redo.lua deleted file mode 100644 index db350c9..0000000 --- a/soy_redo.lua +++ /dev/null @@ -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") \ No newline at end of file diff --git a/sunflower.lua b/sunflower.lua index e1e6aa5..342aef4 100644 --- a/sunflower.lua +++ b/sunflower.lua @@ -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. diff --git a/sunflower_default.lua b/sunflower_default.lua deleted file mode 100644 index 29bd9ea..0000000 --- a/sunflower_default.lua +++ /dev/null @@ -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 \ No newline at end of file diff --git a/sunflower_redo.lua b/sunflower_redo.lua deleted file mode 100644 index af01a10..0000000 --- a/sunflower_redo.lua +++ /dev/null @@ -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