diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-22 14:25:31 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-22 14:25:31 +0000 |
commit | 7a972937da8a116e1d285531749c4c3f47341f96 (patch) | |
tree | 27fbf0fbc4228e7e96970c6d045460603b7436a7 | |
parent | 283e4b7a9ba11190141a94011e43a3c43c7fcb7c (diff) |
added sliced bread, toast, toast sandwich. changed some recipes
-rw-r--r-- | barley.lua | 6 | ||||
-rw-r--r-- | donut.lua | 23 | ||||
-rw-r--r-- | rhubarb.lua | 5 | ||||
-rw-r--r-- | textures/farming_bread_slice.png | bin | 0 -> 159 bytes | |||
-rw-r--r-- | textures/farming_toast.png | bin | 0 -> 159 bytes | |||
-rw-r--r-- | textures/farming_toast_sandwich.png | bin | 0 -> 175 bytes | |||
-rw-r--r-- | wheat.lua | 53 |
7 files changed, 69 insertions, 18 deletions
@@ -30,7 +30,11 @@ minetest.register_craftitem("farming:barley", { minetest.register_craft({ type = "shapeless", output = "farming:flour", - recipe = {"farming:barley", "farming:barley", "farming:barley", "farming:barley"} + recipe = { + "farming:barley", "farming:barley", "farming:barley", + "farming:barley", "farming:mortar_pestle" + }, + replacements = {{"farming:mortar_pestle", "farming:mortar_pestle"}}, }) -- barley definition @@ -51,31 +51,26 @@ minetest.register_craft({ minetest.register_craftitem("farming:porridge", { description = S("Porridge"), inventory_image = "farming_porridge.png", - on_use = minetest.item_eat(6), + 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({ - output = "farming:porridge", type = "shapeless", - recipe = { - "group:food_barley", "group:food_barley", "group:food_wheat", - "group:food_wheat", "group:food_milk" - }, - replacements = {{"mobs:bucket_milk", "bucket:bucket_empty"}} - }) -else - minetest.register_craft({ output = "farming:porridge", - type = "shapeless", recipe = { "group:food_barley", "group:food_barley", "group:food_wheat", - "group:food_wheat", "bucket:bucket_water" + "group:food_wheat", "group:food_bowl", fluid }, - replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} + replacements = {{fluid_return, "bucket:bucket_empty"}} }) - end end) diff --git a/rhubarb.lua b/rhubarb.lua index 014ccf9..1fa897f 100644 --- a/rhubarb.lua +++ b/rhubarb.lua @@ -22,10 +22,11 @@ minetest.register_craftitem("farming:rhubarb_pie", { minetest.register_craft({ output = "farming:rhubarb_pie", recipe = { - {"", "group:food_sugar", ""}, + {"farming:baking_tray", "group:food_sugar", ""}, {"group:food_rhubarb", "group:food_rhubarb", "group:food_rhubarb"}, {"group:food_wheat", "group:food_wheat", "group:food_wheat"}, - } + }, + replacements = {{"farming:baking_tray", "farming:baking_tray"}} }) -- rhubarb definition diff --git a/textures/farming_bread_slice.png b/textures/farming_bread_slice.png Binary files differnew file mode 100644 index 0000000..ff2714d --- /dev/null +++ b/textures/farming_bread_slice.png diff --git a/textures/farming_toast.png b/textures/farming_toast.png Binary files differnew file mode 100644 index 0000000..8a4524e --- /dev/null +++ b/textures/farming_toast.png diff --git a/textures/farming_toast_sandwich.png b/textures/farming_toast_sandwich.png Binary files differnew file mode 100644 index 0000000..c60ff5a --- /dev/null +++ b/textures/farming_toast_sandwich.png @@ -61,7 +61,11 @@ minetest.register_craftitem("farming:flour", { minetest.register_craft({ type = "shapeless", output = "farming:flour", - recipe = {"farming:wheat", "farming:wheat", "farming:wheat", "farming:wheat"} + recipe = { + "farming:wheat", "farming:wheat", "farming:wheat", + "farming:wheat", "farming:mortar_pestle" + }, + replacements = {{"farming:mortar_pestle", "farming:mortar_pestle"}}, }) -- bread @@ -79,6 +83,53 @@ minetest.register_craft({ recipe = "farming:flour" }) +-- sliced bread +minetest.register_craftitem("farming:bread_slice", { + description = S("Sliced Bread"), + inventory_image = "farming_bread_slice.png", + on_use = minetest.item_eat(1), + groups = {food_bread_slice = 1, flammable = 2}, +}) + +minetest.register_craft({ + type = "shapeless", + output = "farming:bread_slice 5", + recipe = {"farming:bread", "group:food_cutting_board"}, + replacements = {{"farming:cutting_board", "farming:cutting_board"}}, +}) + +-- toast +minetest.register_craftitem("farming:toast", { + description = S("Toast"), + inventory_image = "farming_toast.png", + on_use = minetest.item_eat(1), + groups = {food_toast = 1, flammable = 2}, +}) + +minetest.register_craft({ + type = "cooking", + cooktime = 3, + output = "farming:toast", + recipe = "farming:bread_slice" +}) + +-- toast sandwich +minetest.register_craftitem("farming:toast_sandwich", { + description = S("Toast Sandwich"), + inventory_image = "farming_toast_sandwich.png", + on_use = minetest.item_eat(4), + groups = {flammable = 2}, +}) + +minetest.register_craft({ + output = "farming:toast_sandwich", + recipe = { + {"farming:bread_slice"}, + {"farming:toast"}, + {"farming:bread_slice"}, + } +}) + -- wheat definition local crop_def = { drawtype = "plantlike", |