diff --git a/mcl_tomato/craft.lua b/mcl_tomato/craft.lua new file mode 100644 index 0000000..849a14d --- /dev/null +++ b/mcl_tomato/craft.lua @@ -0,0 +1,38 @@ +local modname = minetest.get_current_modname() + +local tomato = modname .. ":tomato" +local seeds = modname .. ":seeds" +local sauce = modname .. ":sauce" + +local wheat = "mcl_farming:wheat_item" +local pasta = modname .. ":pasta" + +local pasta_with_sauce = modname .. ":pasta_with_sauce" + +minetest.register_craft({ + type = "shapeless", + output = seeds .. " 4", + recipe = { tomato }, +}) + +minetest.register_craft({ + output = sauce, + recipe = { + { tomato }, + { "mcl_potions:glass_bottle" }, + }, +}) + +minetest.register_craft({ + output = pasta, + recipe = { + { wheat, wheat }, + { wheat, wheat }, + }, +}) + +minetest.register_craft({ + type = "shapeless", + output = pasta_with_sauce, + recipe = { pasta, sauce }, +}) diff --git a/mcl_tomato/depends.txt b/mcl_tomato/depends.txt new file mode 100644 index 0000000..6729056 --- /dev/null +++ b/mcl_tomato/depends.txt @@ -0,0 +1,5 @@ +mcl_vegan_utils +mcl_core +mcl_farming +mcl_sounds +mcl_potions diff --git a/mcl_tomato/init.lua b/mcl_tomato/init.lua new file mode 100644 index 0000000..fa82dbc --- /dev/null +++ b/mcl_tomato/init.lua @@ -0,0 +1,3 @@ +include("item") +include("node") +include("craft") diff --git a/mcl_tomato/item.lua b/mcl_tomato/item.lua new file mode 100644 index 0000000..4e2541f --- /dev/null +++ b/mcl_tomato/item.lua @@ -0,0 +1,47 @@ +local modname = minetest.get_current_modname() + +mcl_vegan.register_plant_items(modname, "tomato", { + seed = "seeds", + descriptions = { + base = "Tomato", + }, + food_strength = 2.0, +}) + +minetest.register_craftitem(modname .. ":pasta", { + description = "Noddles :3", + inventory_image = modname .. "_pasta.png", + groups = { + craftitem = 1, + food = 1, + eatable = 3, + }, + _mcl_saturation = 3.0, + on_place = minetest.item_eat(3), + on_secondary_use = minetest.item_eat(3), +}) + +minetest.register_craftitem(modname .. ":sauce", { + description = "Tomato Sauce", + inventory_image = modname .. "_sauce.png", + groups = { + craftitem = 1, + food = 1, + eatable = 2, + }, + _mcl_saturation = 2.0, + on_place = minetest.item_eat(2), + on_secondary_use = minetest.item_eat(2), +}) + +minetest.register_craftitem(modname .. ":pasta_with_sauce", { + description = "Noddles with Tomato Sauce", + inventory_image = modname .. "_pasta_with_sauce.png", + groups = { + food = 2, + eatable = 8, + }, + _mcl_saturation = 8.0, + on_place = minetest.item_eat(8), + on_secondary_use = minetest.item_eat(8), +}) diff --git a/mcl_tomato/mod.conf b/mcl_tomato/mod.conf new file mode 100644 index 0000000..dc22e22 --- /dev/null +++ b/mcl_tomato/mod.conf @@ -0,0 +1,3 @@ +name = mcl_tomato +description = adds tomatoes and tomato sauce to mineclone2. +title = tomatoes for mineclone2 diff --git a/mcl_tomato/node.lua b/mcl_tomato/node.lua new file mode 100644 index 0000000..1812299 --- /dev/null +++ b/mcl_tomato/node.lua @@ -0,0 +1,28 @@ +local modname = minetest.get_current_modname() + +local tomato = modname .. ":tomato" +local seeds = modname .. ":seeds" + +local final_drops = { + max_items = 4, + items = { + { items = { seeds } }, + { items = { tomato } }, + { items = { tomato .. " 2" }, rarity = 2 }, + { items = { seeds .. " 2" }, rarity = 2 }, + { items = { tomato .. " 3" }, rarity = 4 }, + { items = { tomato } }, + { items = { seeds }, rarity = 2 }, + }, +} + +mcl_vegan.register_basic_plant(modname, "tomato", { + seed = "seeds", + descriptions = { + crop = "Tomato Plant", + }, + drops = final_drops, + growth_interval = 5, + growth_chance = 1, + can_forage = true, +}) diff --git a/mcl_tomato/textures/mcl_tomato_pasta.png b/mcl_tomato/textures/mcl_tomato_pasta.png new file mode 100644 index 0000000..44df1e1 Binary files /dev/null and b/mcl_tomato/textures/mcl_tomato_pasta.png differ diff --git a/mcl_tomato/textures/mcl_tomato_pasta_with_sauce.png b/mcl_tomato/textures/mcl_tomato_pasta_with_sauce.png new file mode 100644 index 0000000..1ffb487 Binary files /dev/null and b/mcl_tomato/textures/mcl_tomato_pasta_with_sauce.png differ diff --git a/mcl_tomato/textures/mcl_tomato_sauce.png b/mcl_tomato/textures/mcl_tomato_sauce.png new file mode 100644 index 0000000..1ffb487 Binary files /dev/null and b/mcl_tomato/textures/mcl_tomato_sauce.png differ diff --git a/mcl_tomato/textures/mcl_tomato_tomato.png b/mcl_tomato/textures/mcl_tomato_tomato.png new file mode 100644 index 0000000..b880cb7 Binary files /dev/null and b/mcl_tomato/textures/mcl_tomato_tomato.png differ diff --git a/mcl_tomato/textures/mcl_tomato_tomato_stage_0.png b/mcl_tomato/textures/mcl_tomato_tomato_stage_0.png new file mode 100644 index 0000000..2726769 Binary files /dev/null and b/mcl_tomato/textures/mcl_tomato_tomato_stage_0.png differ diff --git a/mcl_tomato/textures/mcl_tomato_tomato_stage_1.png b/mcl_tomato/textures/mcl_tomato_tomato_stage_1.png new file mode 100644 index 0000000..8adeafb Binary files /dev/null and b/mcl_tomato/textures/mcl_tomato_tomato_stage_1.png differ diff --git a/mcl_tomato/textures/mcl_tomato_tomato_stage_2.png b/mcl_tomato/textures/mcl_tomato_tomato_stage_2.png new file mode 100644 index 0000000..d698821 Binary files /dev/null and b/mcl_tomato/textures/mcl_tomato_tomato_stage_2.png differ diff --git a/mcl_tomato/textures/mcl_tomato_tomato_stage_3.png b/mcl_tomato/textures/mcl_tomato_tomato_stage_3.png new file mode 100644 index 0000000..e6a894b Binary files /dev/null and b/mcl_tomato/textures/mcl_tomato_tomato_stage_3.png differ diff --git a/mcl_tomato/textures/mcl_tomato_tomato_stage_4.png b/mcl_tomato/textures/mcl_tomato_tomato_stage_4.png new file mode 100644 index 0000000..d32f2f4 Binary files /dev/null and b/mcl_tomato/textures/mcl_tomato_tomato_stage_4.png differ diff --git a/mcl_tomato/textures/mcl_tomato_tomato_stage_5.png b/mcl_tomato/textures/mcl_tomato_tomato_stage_5.png new file mode 100644 index 0000000..c396108 Binary files /dev/null and b/mcl_tomato/textures/mcl_tomato_tomato_stage_5.png differ diff --git a/mcl_tomato/textures/mcl_tomato_tomato_stage_6.png b/mcl_tomato/textures/mcl_tomato_tomato_stage_6.png new file mode 100644 index 0000000..cfb9070 Binary files /dev/null and b/mcl_tomato/textures/mcl_tomato_tomato_stage_6.png differ diff --git a/mcl_tomato/textures/mcl_tomato_tomato_stage_7.png b/mcl_tomato/textures/mcl_tomato_tomato_stage_7.png new file mode 100644 index 0000000..c38bc14 Binary files /dev/null and b/mcl_tomato/textures/mcl_tomato_tomato_stage_7.png differ