From f1586a09ebd6f34c2ee61f197753e2df06e3aca6 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Mon, 5 Apr 2021 12:32:11 +0100 Subject: [PATCH] add fugu, teriyaki chicken & beef --- food.lua | 69 +++++++++++++++++++++++++ textures/ethereal_fugu.png | Bin 0 -> 196 bytes textures/ethereal_teriyaki_beef.png | Bin 0 -> 660 bytes textures/ethereal_teriyaki_chicken.png | Bin 0 -> 165 bytes 4 files changed, 69 insertions(+) create mode 100644 textures/ethereal_fugu.png create mode 100644 textures/ethereal_teriyaki_beef.png create mode 100644 textures/ethereal_teriyaki_chicken.png diff --git a/food.lua b/food.lua index d624edb..54560f0 100644 --- a/food.lua +++ b/food.lua @@ -443,3 +443,72 @@ minetest.register_craft({ {"group:food_seaweed", "group:food_egg", "group:food_rice"} } }) + +-- Fugu (prepared pufferfish) +minetest.register_craftitem("ethereal:fugu", { + description = S("Fugusashi"), + inventory_image = "ethereal_fugu.png", + on_use = function(itemstack, user, pointed_thing) + if user then + if math.random(12) == 1 then + return minetest.do_item_eat(-16, nil, itemstack, user, pointed_thing) + else + return minetest.do_item_eat(4, nil, itemstack, user, pointed_thing) + end + end + end +}) + +minetest.register_craft({ + output = "ethereal:fugu", + type = "shapeless", + recipe = { + "ethereal:fish_pufferfish", "group:food_soy_sauce", + "group:food_cutting_board" + }, + replacements = { + {"group:food_cutting_board", "farming:cutting_board"}, + {"group:food_soy_sauce", "vessels:glass_bottle"} + } +}) + +-- Teriyaki Chicken +minetest.register_craftitem("ethereal:teriyaki_chicken", { + description = S("Teriyaki Chicken"), + inventory_image = "ethereal_teriyaki_chicken.png", + on_use = minetest.item_eat(4) +}) + +minetest.register_craft({ + type = "shapeless", + output = "ethereal:teriyaki_chicken 2", + recipe = { + "group:food_chicken_raw", "group:food_sugar", "group:food_soy_sauce", + "group:food_garlic_clove", "group:food_saucepan", "group:food_gelatin" + }, + replacements = { + {"group:food_soy_sauce", "vessels:glass_bottle"}, + {"group:food_saucepan", "farming:saucepan"} + } +}) + +-- Teriyaki Beef +minetest.register_craftitem("ethereal:teriyaki_beef", { + description = S("Teriyaki Beef"), + inventory_image = "ethereal_teriyaki_beef.png", + on_use = minetest.item_eat(12, "ethereal:bowl") +}) + +minetest.register_craft({ + type = "shapeless", + output = "ethereal:teriyaki_beef", + recipe = { + "group:food_meat_raw", "group:food_sugar", "group:food_soy_sauce", + "group:food_garlic_clove", "group:food_saucepan", "group:food_gelatin", + "group:food_cabbage", "group:food_rice", "group:food_bowl" + }, + replacements = { + {"group:food_soy_sauce", "vessels:glass_bottle"}, + {"group:food_saucepan", "farming:saucepan"} + } +}) diff --git a/textures/ethereal_fugu.png b/textures/ethereal_fugu.png new file mode 100644 index 0000000000000000000000000000000000000000..9222f773dc3f3d382aa02be97d49c1439216bc0f GIT binary patch literal 196 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPE^3h)VWWysIrO^G*OI)CTRoyU(K zU;N>XTwR4dP?oVI$S;_|;n|HeASc1o#W95Ax@vEr-~j^;=bc&^su!e%0xldrpzv?4 zPRSnury_rsWA`o@>ugYORXjcQn5N6#V73SEM2<-}bh)OLo|v@%^#YmY8hiy4Zmm7A sHe6}fIf28s)*P=7yL|oV=~sUlzjuf?Kdm#p3ABsB)78&qol`;+08AH682|tP literal 0 HcmV?d00001 diff --git a/textures/ethereal_teriyaki_beef.png b/textures/ethereal_teriyaki_beef.png new file mode 100644 index 0000000000000000000000000000000000000000..05a99fb380e65db4b7f1191efe6c2f0fc97d4cf0 GIT binary patch literal 660 zcmV;F0&D$=P)e$Ed=;1=5wb%dv00DGTPE!Ct=GbNc z00HPpL_t(Y$L*EbdZRE5g=;MknkuMcOk4u*|C%G&B+yQ}%r|qHb72yr-$x51Pfrg$ z^dAJKzaywO9S%Q_Kaxs}(slf8?173b^i@+*mG)S7K0DiEi?V%8l2Q^`x1NdqOp=1f zxtj>Km&?<-Z_MTWDw5zPIh*+21_IqM|Wxi7PkuWB7-Dg;NkHekc uixBQ%HT*8{9^3R~_#WHz_^)~BAN3oRp+P^Il=}Yw0000j?n9sg#*!evUmdK II;Vst0Nk`LMgRZ+ literal 0 HcmV?d00001