123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- local S = minetest.get_translator("ferns")
- local fern1 = minetest.registered_items["default:fern_1"] or false
- fern1 = (fern1 and fern1.name) or "ferns:fern_01"
- minetest.register_craft({
- type = "shapeless",
- output = "ferns:fiddlehead 3",
- recipe = {"ferns:fern_01"},
- replacements = {
- {fern1, "ferns:ferntuber"}
- },
- })
- minetest.register_craft({
- type = "shapeless",
- output = "ferns:fiddlehead 3",
- recipe = {"ferns:tree_fern_leaves"},
- replacements = {
- {"ferns:tree_fern_leaves", "ferns:sapling_tree_fern"}
- },
- })
- minetest.register_alias("archaeplantae:fiddlehead", "ferns:fiddlehead")
- minetest.register_craftitem("ferns:fiddlehead", {
- description = S("Fiddlehead"),
- inventory_image = "ferns_fiddlehead.png",
- on_use = minetest.item_eat(-1),
- })
- minetest.register_craft({
- type = "cooking",
- output = "ferns:fiddlehead_roasted",
- recipe = "ferns:fiddlehead",
- cooktime = 1,
- })
- minetest.register_craftitem("ferns:fiddlehead_roasted", {
- description = S("Roasted Fiddlehead"),
- inventory_image = "ferns_fiddlehead_roasted.png",
- on_use = minetest.item_eat(1),
- })
- minetest.register_alias("archaeplantae:ferntuber", "ferns:ferntuber")
- minetest.register_craftitem("ferns:ferntuber", {
- description = S("Fern Tuber"),
- inventory_image = "ferns_ferntuber.png",
- })
- minetest.register_craft({
- type = "cooking",
- output = "ferns:ferntuber_roasted",
- recipe = "ferns:ferntuber",
- cooktime = 3,
- })
- minetest.register_alias("archaeplantae:ferntuber_roasted", "ferns:ferntuber_roasted")
- minetest.register_craftitem("ferns:ferntuber_roasted", {
- description = S("Roasted Fern Tuber"),
- inventory_image = "ferns_ferntuber_roasted.png",
- on_use = minetest.item_eat(3),
- })
- minetest.register_craft({
- type = "shapeless",
- output = "dye:green",
- recipe = {"group:horsetail"},
- })
|