123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360 |
- -----------------------------------------------------------------------------------------------
- -- Dry Plants - Recipes 0.1.0 -- Short Grass -> Dirt
- -----------------------------------------------------------------------------------------------
- -- by Mossmanikin
- -- Looked at code from: darkage, default, farming, sickle, stairs
- -- Dependencies: default, farming
- -- Supports: flint, stoneage, sumpf
- -----------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------
- -- Short Grass
- -----------------------------------------------------------------------------------------------
- minetest.register_craft({
- output = "default:dirt",
- recipe = {
- {"dryplants:grass_short"},
- }
- })
- -----------------------------------------------------------------------------------------------
- -- Cut Grass
- -----------------------------------------------------------------------------------------------
- -- grass recipes (remove roots)
- minetest.register_craft({
- output = "dryplants:grass",
- recipe = {
- {"default:grass_1"},
- }
- })
- minetest.register_craft({
- output = "dryplants:grass",
- recipe = {
- {"default:junglegrass"},
- }
- })
- if minetest.get_modpath("sumpf") ~= nil then
- minetest.register_craft({
- output = "dryplants:grass",
- recipe = {
- {"sumpf:gras"},
- }
- })
- end
- -----------------------------------------------------------------------------------------------
- -- Sickle
- -----------------------------------------------------------------------------------------------
- minetest.register_craft({
- output = "dryplants:sickle",
- recipe = {
- {"group:stone",""},
- {"", "default:stick"},
- {"default:stick",""}
- }
- })
- if minetest.get_modpath("flint") ~= nil then
- minetest.register_craft({
- output = "dryplants:sickle",
- recipe = {
- {"flint:flintstone",""},
- {"", "default:stick"},
- {"default:stick",""}
- }
- })
- end
- if minetest.get_modpath("stoneage") ~= nil then
- minetest.register_craft({
- output = "dryplants:sickle",
- recipe = {
- {"stoneage:silex",""},
- {"", "default:stick"},
- {"default:stick",""}
- }
- })
- end
- -----------------------------------------------------------------------------------------------
- -- Hay
- -----------------------------------------------------------------------------------------------
- --cooking
- minetest.register_craft({
- type = "cooking",
- output = "dryplants:hay",
- recipe = "dryplants:grass",
- cooktime = 2,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "dryplants:hay",
- burntime = 1,
- })
- -----------------------------------------------------------------------------------------------
- -- Wet Reed
- -----------------------------------------------------------------------------------------------
- minetest.register_craft({ -- papyrus -> wetreed
- output = "dryplants:wetreed 2",
- recipe = {
- {"default:papyrus","default:papyrus"},
- {"default:papyrus","default:papyrus"},
- }
- })
- minetest.register_craft({ -- reedmace_sapling -> wetreed
- output = "dryplants:wetreed 2",
- recipe = {
- {"dryplants:reedmace_sapling","dryplants:reedmace_sapling"},
- {"dryplants:reedmace_sapling","dryplants:reedmace_sapling"},
- }
- })
- minetest.register_craft({ -- reedmace_top -> wetreed
- output = "dryplants:wetreed 2",
- recipe = {
- {"dryplants:reedmace_top","dryplants:reedmace_top"},
- {"dryplants:reedmace_top","dryplants:reedmace_top"},
- }
- })
- minetest.register_craft({ -- reedmace -> wetreed
- output = "dryplants:wetreed 2",
- recipe = {
- {"dryplants:reedmace","dryplants:reedmace"},
- {"dryplants:reedmace","dryplants:reedmace"},
- }
- })
- minetest.register_craft({ -- reedmace_bottom -> wetreed
- output = "dryplants:wetreed 2",
- recipe = {
- {"dryplants:reedmace_bottom","dryplants:reedmace_bottom"},
- {"dryplants:reedmace_bottom","dryplants:reedmace_bottom"},
- }
- })
- local ReeD = {
- {"wetreed"},
- {"reed"}
- }
- for i in pairs(ReeD) do
- local reed = "dryplants:"..ReeD[i][1]
- local slab = reed.."_slab"
- local roof = reed.."_roof"
- local corner = roof.."_corner"
- local corner_2 = corner.."_2"
- -----------------------------------------------------------------------------------------------
- -- Block
- -----------------------------------------------------------------------------------------------
- minetest.register_craft({ -- slab -> block
- output = reed,
- recipe = {
- {slab},
- {slab},
- }
- })
- minetest.register_craft({ -- roof -> block
- output = reed,
- recipe = {
- {roof},
- {roof},
- }
- })
- minetest.register_craft({ -- corner -> block
- type = "shapeless",
- output = reed.." 3",
- recipe = {corner,corner,corner,corner,corner,corner,corner,corner}, -- 8x
- })
- minetest.register_craft({ -- corner_2 -> block
- type = "shapeless",
- output = reed.." 3",
- recipe = {corner_2,corner_2,corner_2,corner_2,corner_2,corner_2,corner_2,corner_2}, -- 8x
- })
- -----------------------------------------------------------------------------------------------
- -- Slab
- -----------------------------------------------------------------------------------------------
- minetest.register_craft({ -- block -> slab
- output = slab.." 6",
- recipe = {
- {reed,reed,reed},
- }
- })
- minetest.register_craft({ -- roof -> slab
- output = slab,
- recipe = {
- {roof},
- }
- })
- minetest.register_craft({ -- corner -> slab
- output = slab.." 3",
- recipe = {
- {corner,corner},
- {corner,corner},
- }
- })
- minetest.register_craft({ -- corner_2 -> slab
- output = slab.." 3",
- recipe = {
- {corner_2,corner_2},
- {corner_2,corner_2},
- }
- })
- -----------------------------------------------------------------------------------------------
- -- Roof
- -----------------------------------------------------------------------------------------------
- minetest.register_craft({ -- block -> roof
- output = roof.." 4",
- recipe = {
- {reed,""},
- {"",reed},
- }
- })
- minetest.register_craft({ -- block -> roof
- output = roof.." 4",
- recipe = {
- {"",reed},
- {reed,""},
- }
- })
- minetest.register_craft({ -- slab -> roof
- output = roof,
- recipe = {
- {slab},
- }
- })
- -----------------------------------------------------------------------------------------------
- -- Roof Corner
- -----------------------------------------------------------------------------------------------
- minetest.register_craft({ -- block -> corner
- output = corner.." 8",
- recipe = {
- {"",reed,""},
- {reed,"",reed},
- }
- })
- minetest.register_craft({ -- corner_2 -> corner
- output = corner,
- recipe = {
- {corner_2},
- }
- })
- -----------------------------------------------------------------------------------------------
- -- Roof Corner 2
- -----------------------------------------------------------------------------------------------
- minetest.register_craft({ -- block -> corner_2
- output = corner_2.." 8",
- recipe = {
- {reed,"",reed},
- {"",reed,""},
- }
- })
- minetest.register_craft({ -- corner -> corner_2
- output = corner_2,
- recipe = {
- {corner},
- }
- })
- end
- -----------------------------------------------------------------------------------------------
- -- Reed
- -----------------------------------------------------------------------------------------------
- minetest.register_craft({ -- hay -> reed
- output = "dryplants:reed 2",
- recipe = {
- {"dryplants:hay","dryplants:hay"},
- {"dryplants:hay","dryplants:hay"},
- }
- })
- --cooking
- minetest.register_craft({ -- wetreed -> reed
- type = "cooking",
- output = "dryplants:reed",
- recipe = "dryplants:wetreed",
- cooktime = 2,
- })
- --fuel
- minetest.register_craft({
- type = "fuel",
- recipe = "dryplants:reed",
- burntime = 4,
- })
- -----------------------------------------------------------------------------------------------
- -- Reed Slab
- -----------------------------------------------------------------------------------------------
- --cooking
- minetest.register_craft({ -- wetreed_slab -> reed_slab
- type = "cooking",
- output = "dryplants:reed_slab",
- recipe = "dryplants:wetreed_slab",
- cooktime = 1,
- })
- --fuel
- minetest.register_craft({
- type = "fuel",
- recipe = "dryplants:reed_slab",
- burntime = 2,
- })
- -----------------------------------------------------------------------------------------------
- -- Reed Roof
- -----------------------------------------------------------------------------------------------
- --cooking
- minetest.register_craft({ -- wetreed_roof -> reed_roof
- type = "cooking",
- output = "dryplants:reed_roof",
- recipe = "dryplants:wetreed_roof",
- cooktime = 1,
- })
- --fuel
- minetest.register_craft({
- type = "fuel",
- recipe = "dryplants:reed_roof",
- burntime = 2,
- })
- -----------------------------------------------------------------------------------------------
- -- Reed Roof Corner
- -----------------------------------------------------------------------------------------------
- --cooking
- minetest.register_craft({ -- wetreed_roof_corner -> reed_roof_corner
- type = "cooking",
- output = "dryplants:reed_roof_corner",
- recipe = "dryplants:wetreed_roof_corner",
- cooktime = 1,
- })
- --fuel
- minetest.register_craft({
- type = "fuel",
- recipe = "dryplants:reed_roof_corner",
- burntime = 2,
- })
- -----------------------------------------------------------------------------------------------
- -- Wet Reed Roof Corner 2
- -----------------------------------------------------------------------------------------------
- --cooking
- minetest.register_craft({ -- wetreed_roof_corner -> reed_roof_corner
- type = "cooking",
- output = "dryplants:reed_roof_corner_2",
- recipe = "dryplants:wetreed_roof_corner_2",
- cooktime = 1,
- })
- --fuel
- minetest.register_craft({
- type = "fuel",
- recipe = "dryplants:reed_roof_corner_2",
- burntime = 2,
- })
- -----------------------------------------------------------------------------------------------
- -- Dandelion Leave
- -----------------------------------------------------------------------------------------------
- --[[minetest.register_craftitem("dryplants:dandelion_leave", {
- description = "Dandelion Leave",
- inventory_image = "dryplants_dandelion_leave.png",
- on_use = minetest.item_eat(1),
- })
- minetest.register_craft({
- type = "shapeless",
- output = "dryplants:dandelion_leave 4",
- recipe = {"flowers:dandelion_yellow"},
- replacements = {
- {"flowers:dandelion_yellow", "dye:yellow"}
- },
- })]]
|