diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 21:00:20 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 21:10:04 -0400 |
commit | 888b0ebfec8c2eff9015163549a7e47443cb8665 (patch) | |
tree | 915080159bfaa6ba6e226087c7ce0e8d5464b518 /plantlife_modpack/bushes_classic/cooking.lua | |
parent | da66780a569712c23ae4f2996cfb4608a9f9d69d (diff) | |
download | dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.gz dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.bz2 dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.xz dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.zip |
"explode" all modpacks into their individual components
(you can't have a modpack buried inside a modpack)
Diffstat (limited to 'plantlife_modpack/bushes_classic/cooking.lua')
-rw-r--r-- | plantlife_modpack/bushes_classic/cooking.lua | 118 |
1 files changed, 0 insertions, 118 deletions
diff --git a/plantlife_modpack/bushes_classic/cooking.lua b/plantlife_modpack/bushes_classic/cooking.lua deleted file mode 100644 index c672975..0000000 --- a/plantlife_modpack/bushes_classic/cooking.lua +++ /dev/null @@ -1,118 +0,0 @@ -local S = biome_lib.intllib - --- Basket - -minetest.register_craft({ - output = "bushes:basket_empty", - recipe = { - { "default:stick", "default:stick", "default:stick" }, - { "", "default:stick", "" }, - }, -}) - --- Sugar - -minetest.register_craftitem(":bushes:sugar", { - description = S("Sugar"), - inventory_image = "bushes_sugar.png", - on_use = minetest.item_eat(1), - groups = {food_sugar=1} -}) - -minetest.register_craft({ - output = "bushes:sugar 1", - recipe = { - { "default:papyrus", "default:papyrus" }, - }, -}) - -for i, berry in ipairs(bushes_classic.bushes) do - local desc = bushes_classic.bushes_descriptions[i] - - minetest.register_craftitem(":bushes:"..berry.."_pie_raw", { - description = S("Raw "..desc.." pie"), - inventory_image = "bushes_"..berry.."_pie_raw.png", - on_use = minetest.item_eat(4), - }) - - if berry ~= "mixed_berry" then - - if berry == "strawberry" and minetest.registered_nodes["farming_plus:strawberry"] then - -- Special case for strawberries, when farming_plus is in use. Use - -- the item from that mod, but redefine it so it has the right - -- groups and does't look so ugly! - minetest.register_craftitem(":farming_plus:strawberry_item", { - description = S("Strawberry"), - inventory_image = "bushes_"..berry..".png", - on_use = minetest.item_eat(2), - groups = {berry=1, strawberry=1} - }) - minetest.register_alias("bushes:strawberry", "farming_plus:strawberry_item") - else - minetest.register_craftitem(":bushes:"..berry, { - description = desc, - inventory_image = "bushes_"..berry..".png", - groups = {berry = 1, [berry] = 1}, - on_use = minetest.item_eat(1), - }) - end - minetest.register_craft({ - output = "bushes:"..berry.."_pie_raw 1", - recipe = { - { "group:food_sugar", "farming:flour", "group:food_sugar" }, - { "group:"..berry, "group:"..berry, "group:"..berry }, - }, - }) - end - - -- Cooked pie - - minetest.register_craftitem(":bushes:"..berry.."_pie_cooked", { - description = S("Cooked "..desc.." pie"), - inventory_image = "bushes_"..berry.."_pie_cooked.png", - on_use = minetest.item_eat(6), - }) - - minetest.register_craft({ - type = "cooking", - output = "bushes:"..berry.."_pie_cooked", - recipe = "bushes:"..berry.."_pie_raw", - cooktime = 30, - }) - - -- slice of pie - - minetest.register_craftitem(":bushes:"..berry.."_pie_slice", { - description = S("Slice of "..desc.." pie"), - inventory_image = "bushes_"..berry.."_pie_slice.png", - on_use = minetest.item_eat(1), - }) - - minetest.register_craft({ - output = "bushes:"..berry.."_pie_slice 6", - recipe = { - { "bushes:"..berry.."_pie_cooked" }, - }, - }) - - -- Basket with pies - - minetest.register_craft({ - output = "bushes:basket_"..berry.." 1", - recipe = { - { "bushes:"..berry.."_pie_cooked", "bushes:"..berry.."_pie_cooked", "bushes:"..berry.."_pie_cooked" }, - { "", "bushes:basket_empty", "" }, - }, - }) -end - -minetest.register_craft({ - output = "bushes:mixed_berry_pie_raw 2", - recipe = { - { "group:food_sugar", "farming:flour", "group:food_sugar" }, - { "group:berry", "group:berry", "group:berry" }, - { "group:berry", "group:berry", "group:berry" }, - }, -}) - - |