From 025035db5c87e9eaa9f83859f860539fc4fb4dc0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 18 Dec 2020 19:38:39 +0100 Subject: [PATCH] DevTest: Add food item to test food replacement (#10642) --- games/devtest/mods/testfood/init.lua | 7 +++++++ .../mods/testfood/textures/testfood_replace.png | Bin 0 -> 135 bytes 2 files changed, 7 insertions(+) create mode 100644 games/devtest/mods/testfood/textures/testfood_replace.png diff --git a/games/devtest/mods/testfood/init.lua b/games/devtest/mods/testfood/init.lua index a6236ff68..39b121306 100644 --- a/games/devtest/mods/testfood/init.lua +++ b/games/devtest/mods/testfood/init.lua @@ -22,3 +22,10 @@ minetest.register_craftitem("testfood:bad5", { on_use = minetest.item_eat(-5), }) +minetest.register_craftitem("testfood:replace1", { + description = S("Replacing Food (+1)").."\n".. + S("Replaced with 'Good Food (+1)' when eaten"), + inventory_image = "testfood_replace.png", + on_use = minetest.item_eat(1, "testfood:good1"), +}) + diff --git a/games/devtest/mods/testfood/textures/testfood_replace.png b/games/devtest/mods/testfood/textures/testfood_replace.png new file mode 100644 index 0000000000000000000000000000000000000000..1ef6876e5bbf794803a9282601a1836def754849 GIT binary patch literal 135 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`ex5FlAr*|t5;Gsz%PelRulP_e z67yMpwPL-4&;FG+o!SS~|M{*mZpZEf)hIr*f@dT^6ZjBwh h!bOagoEa6246|yNc^<#LY(LOs22WQ%mvv4FO#sNwDZu~$ literal 0 HcmV?d00001