diff options
author | Wuzzy <wuzzy2@mail.ru> | 2020-12-18 19:38:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 19:38:39 +0100 |
commit | 025035db5c87e9eaa9f83859f860539fc4fb4dc0 (patch) | |
tree | 4146ac2395ae7285686ff6e17ba1664930541438 /games/devtest/mods | |
parent | d5a481b4e610768480b1f57470a4724baa479e4b (diff) | |
download | minetest-025035db5c87e9eaa9f83859f860539fc4fb4dc0.tar.gz minetest-025035db5c87e9eaa9f83859f860539fc4fb4dc0.tar.bz2 minetest-025035db5c87e9eaa9f83859f860539fc4fb4dc0.zip |
DevTest: Add food item to test food replacement (#10642)
Diffstat (limited to 'games/devtest/mods')
-rw-r--r-- | games/devtest/mods/testfood/init.lua | 7 | ||||
-rw-r--r-- | games/devtest/mods/testfood/textures/testfood_replace.png | bin | 0 -> 135 bytes |
2 files changed, 7 insertions, 0 deletions
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 Binary files differnew file mode 100644 index 000000000..1ef6876e5 --- /dev/null +++ b/games/devtest/mods/testfood/textures/testfood_replace.png |