123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368 |
- local S = farming.intllib
- --= Sugar
- minetest.register_craftitem("farming:sugar", {
- description = S("Sugar"),
- inventory_image = "farming_sugar.png",
- groups = {food_sugar = 1, flammable = 3},
- })
- minetest.register_craft({
- type = "cooking",
- cooktime = 3,
- output = "farming:sugar 2",
- recipe = "default:papyrus",
- })
- --= Salt
- minetest.register_node("farming:salt", {
- description = ("Salt"),
- inventory_image = "farming_salt.png",
- wield_image = "farming_salt.png",
- drawtype = "plantlike",
- visual_scale = 0.8,
- paramtype = "light",
- tiles = {"farming_salt.png"},
- groups = {food_salt = 1, vessel = 1, dig_immediate = 3,
- attached_node = 1},
- sounds = default.node_sound_defaults(),
- selection_box = {
- type = "fixed",
- fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
- },
- })
- minetest.register_craft({
- type = "cooking",
- cooktime = 15,
- output = "farming:salt",
- recipe = "bucket:bucket_water",
- replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
- })
- --= Rose Water
- minetest.register_node("farming:rose_water", {
- description = ("Rose Water"),
- inventory_image = "farming_rose_water.png",
- wield_image = "farming_rose_water.png",
- drawtype = "plantlike",
- visual_scale = 0.8,
- paramtype = "light",
- tiles = {"farming_rose_water.png"},
- groups = {food_rose_water = 1, vessel = 1, dig_immediate = 3,
- attached_node = 1},
- sounds = default.node_sound_defaults(),
- selection_box = {
- type = "fixed",
- fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
- },
- })
- minetest.register_craft({
- output = "farming:rose_water",
- recipe = {
- {"flowers:rose", "flowers:rose", "flowers:rose"},
- {"flowers:rose", "flowers:rose", "flowers:rose"},
- {"bucket:bucket_water", "group:food_pot", "vessels:glass_bottle"},
- },
- replacements = {
- {"bucket:bucket_water", "bucket:bucket_empty"},
- {"group:food_pot", "farming:pot"},
- }
- })
- --= Turkish Delight
- minetest.register_craftitem("farming:turkish_delight", {
- description = S("Turkish Delight"),
- inventory_image = "farming_turkish_delight.png",
- groups = {flammable = 3},
- on_use = minetest.item_eat(2),
- })
- minetest.register_craft({
- output = "farming:turkish_delight 4",
- recipe = {
- {"group:food_gelatin", "group:food_sugar", "group:food_gelatin"},
- {"group:food_sugar", "group:food_rose_water", "group:food_sugar"},
- {"group:food_cornstarch", "group:food_sugar", "dye:pink"},
- },
- replacements = {
- {"group:food_cornstarch", "farming:bowl"},
- {"group:food_rose_water", "vessels:glass_bottle"},
- },
- })
- --= Garlic Bread
- minetest.register_craftitem("farming:garlic_bread", {
- description = S("Garlic Bread"),
- inventory_image = "farming_garlic_bread.png",
- groups = {flammable = 3},
- on_use = minetest.item_eat(2),
- })
- minetest.register_craft({
- type = "shapeless",
- output = "farming:garlic_bread",
- recipe = {"group:food_toast", "group:food_garlic_clove", "group:food_garlic_clove"},
- })
- --= Donuts (thanks to Bockwurst for making the donut images)
- minetest.register_craftitem("farming:donut", {
- description = S("Donut"),
- inventory_image = "farming_donut.png",
- on_use = minetest.item_eat(4),
- })
- minetest.register_craft({
- output = "farming:donut 3",
- recipe = {
- {"", "group:food_wheat", ""},
- {"group:food_wheat", "group:food_sugar", "group:food_wheat"},
- {"", "group:food_wheat", ""},
- }
- })
- minetest.register_craftitem("farming:donut_chocolate", {
- description = S("Chocolate Donut"),
- inventory_image = "farming_donut_chocolate.png",
- on_use = minetest.item_eat(6),
- })
- minetest.register_craft({
- output = "farming:donut_chocolate",
- recipe = {
- {'group:food_cocoa'},
- {'farming:donut'},
- }
- })
- minetest.register_craftitem("farming:donut_apple", {
- description = S("Apple Donut"),
- inventory_image = "farming_donut_apple.png",
- on_use = minetest.item_eat(6),
- })
- minetest.register_craft({
- output = "farming:donut_apple",
- recipe = {
- {'default:apple'},
- {'farming:donut'},
- }
- })
- --= Porridge Oats
- minetest.register_craftitem("farming:porridge", {
- description = S("Porridge"),
- inventory_image = "farming_porridge.png",
- on_use = minetest.item_eat(6, "farming:bowl"),
- })
- minetest.after(0, function()
- local fluid = "bucket:bucket_water"
- local fluid_return = "bucket:bucket_water"
- if minetest.get_modpath("mobs") and mobs and mobs.mod == "redo" then
- fluid = "group:food_milk"
- fluid_return = "mobs:bucket_milk"
- end
- minetest.register_craft({
- type = "shapeless",
- output = "farming:porridge",
- recipe = {
- "group:food_barley", "group:food_barley", "group:food_wheat",
- "group:food_wheat", "group:food_bowl", fluid
- },
- replacements = {{fluid_return, "bucket:bucket_empty"}}
- })
- minetest.register_craft({
- type = "shapeless",
- output = "farming:porridge",
- recipe = {
- "group:food_oats", "group:food_oats", "group:food_oats",
- "group:food_oats", "group:food_bowl", fluid
- },
- replacements = {{fluid_return, "bucket:bucket_empty"}}
- })
- end)
- --= Jaffa Cake
- minetest.register_craftitem("farming:jaffa_cake", {
- description = S("Jaffa Cake"),
- inventory_image = "farming_jaffa_cake.png",
- on_use = minetest.item_eat(6),
- })
- minetest.register_craft({
- type = "shapeless",
- output = "farming:jaffa_cake",
- recipe = {
- "farming:baking_tray", "group:food_egg", "group:food_sugar",
- "group:food_flour", "group:food_cocoa", "group:food_orange",
- "group:food_milk"
- },
- replacements = {
- {"farming:baking_tray", "farming:baking_tray"},
- {"mobs:bucket_milk", "bucket:bucket_empty"}
- }
- })
- -- Tomato sauce
- minetest.register_craftitem("farming:tomato_sauce", {
- description = S("Tomato Sauce"),
- inventory_image = "farming_tomato_sauce.png",
- on_use = minetest.item_eat(3, "farming:saucepan"),
- })
- minetest.register_craft({
- type = "shapeless",
- output = "farming:tomato_sauce",
- recipe = {
- "group:food_tomato",
- "group:food_tomato",
- "group:food_tomato",
- "group:food_saucepan"},
- })
- -- Pizza
- minetest.register_craftitem("farming:pizza_unbaked", {
- description = S("Unbaked Pizza"),
- inventory_image = "farming_pizza_unbaked.png",
- on_use = minetest.item_eat(2),
- })
- minetest.register_craft({
- output = "farming:pizza_unbaked",
- recipe = {
- {"group:food_cheese"},
- {"farming:tomato_sauce"},
- {"group:food_flour"},
- },
- replacements = {{"farming:tomato_sauce", "farming:saucepan"}},
- })
- minetest.register_craftitem("farming:pizza", {
- description = S("Pizza"),
- inventory_image = "farming_pizza.png",
- on_use = minetest.item_eat(8),
- groups = {food_pizza = 1},
- })
- minetest.register_craft({
- type = "cooking",
- cooktime = 3,
- output = "farming:pizza",
- recipe = "farming:pizza_unbaked",
- })
- minetest.register_craftitem("farming:pizza_slice", {
- description = S("Pizza Slice"),
- inventory_image = "farming_pizza_slice.png",
- on_use = minetest.item_eat(2),
- groups = {food_pizza_slice = 1},
- })
- minetest.register_craft({
- type = "shapeless",
- output = "farming:pizza_slice 4",
- recipe = {"farming:cutting_board", "farming:pizza"},
- replacements = {{"farming:cutting_board", "farming:cutting board"}},
- })
- minetest.register_craftitem("farming:pizza_with_toppings_unbaked", {
- description = S("Unbaked Pizza with Toppings"),
- inventory_image = "farming_pizza_unbaked.png^farming_pizza_toppings.png",
- on_use = minetest.item_eat(3),
- })
- local pizza_toppings = {
- "group:food_chili_pepper",
- "group:food_onion",
- "group:food_pepper",
- "group:food_pineapple_ring",
- "group:food_tomato",
- "group:food_mushroom",
- "group:food_meat",
- }
- for _, topping in pairs(pizza_toppings) do
- minetest.register_craft({
- output = "farming:pizza_with_toppings_unbaked",
- recipe = {
- {topping},
- {"farming:pizza_unbaked"},
- },
- })
- end
- minetest.register_craftitem("farming:pizza_with_toppings", {
- description = S("Pizza with Toppings"),
- inventory_image = "farming_pizza.png^farming_pizza_toppings.png",
- on_use = minetest.item_eat(12),
- groups = {food_pizza = 1},
- })
- minetest.register_craft({
- type = "cooking",
- cooktime = 3,
- output = "farming:pizza_with_toppings",
- recipe = "farming:pizza_with_toppings_unbaked",
- })
- minetest.register_craftitem("farming:pizza_with_toppings_slice", {
- description = S("Pizza Slice with Toppings"),
- inventory_image = "farming_pizza_with_toppings_slice.png",
- on_use = minetest.item_eat(3),
- groups = {food_pizza_slice = 1},
- })
- minetest.register_craft({
- type = "shapeless",
- output = "farming:pizza_with_toppings_slice 4",
- recipe = {"farming:cutting_board", "farming:pizza_with_toppings"},
- replacements = {{"farming:cutting_board", "farming:cutting board"}},
- })
- -- Multigrain flour
- minetest.register_craftitem("farming:flour_multigrain", {
- description = S("Multigrain Flour"),
- inventory_image = "farming_flour_multigrain.png",
- groups = {food_flour = 1, flammable = 1},
- })
- minetest.register_craft({
- type = "shapeless",
- output = "farming:flour_multigrain",
- recipe = {
- "farming:wheat", "farming:barley", "farming:oat",
- "farming:rye", "farming:mortar_pestle"
- },
- replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
- })
- -- Multigrain bread
- minetest.register_craftitem("farming:bread_multigrain", {
- description = S("Multigrain Bread"),
- inventory_image = "farming_bread_multigrain.png",
- on_use = minetest.item_eat(7),
- groups = {food_bread = 1, flammable = 2},
- })
- minetest.register_craft({
- type = "cooking",
- cooktime = 15,
- output = "farming:bread_multigrain",
- recipe = "farming:flour_multigrain"
- })
|