From 6456aba73f0ef3f2fa7fd2b2a69cfdf8624afe23 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 24 May 2020 15:46:26 +0200 Subject: Replacement for Minimal Development Test (PR) (#9450) --- games/minimal/mods/testfood/init.lua | 24 +++++++++++++++++++++ games/minimal/mods/testfood/mod.conf | 2 ++ .../mods/testfood/textures/testfood_bad.png | Bin 0 -> 126 bytes .../mods/testfood/textures/testfood_bad2.png | Bin 0 -> 133 bytes .../mods/testfood/textures/testfood_good.png | Bin 0 -> 129 bytes .../mods/testfood/textures/testfood_good2.png | Bin 0 -> 145 bytes 6 files changed, 26 insertions(+) create mode 100644 games/minimal/mods/testfood/init.lua create mode 100644 games/minimal/mods/testfood/mod.conf create mode 100644 games/minimal/mods/testfood/textures/testfood_bad.png create mode 100644 games/minimal/mods/testfood/textures/testfood_bad2.png create mode 100644 games/minimal/mods/testfood/textures/testfood_good.png create mode 100644 games/minimal/mods/testfood/textures/testfood_good2.png (limited to 'games/minimal/mods/testfood') diff --git a/games/minimal/mods/testfood/init.lua b/games/minimal/mods/testfood/init.lua new file mode 100644 index 000000000..a6236ff68 --- /dev/null +++ b/games/minimal/mods/testfood/init.lua @@ -0,0 +1,24 @@ +local S = minetest.get_translator("testfood") + +minetest.register_craftitem("testfood:good1", { + description = S("Good Food (+1)"), + inventory_image = "testfood_good.png", + on_use = minetest.item_eat(1), +}) +minetest.register_craftitem("testfood:good5", { + description = S("Good Food (+5)"), + inventory_image = "testfood_good2.png", + on_use = minetest.item_eat(5), +}) + +minetest.register_craftitem("testfood:bad1", { + description = S("Bad Food (-1)"), + inventory_image = "testfood_bad.png", + on_use = minetest.item_eat(-1), +}) +minetest.register_craftitem("testfood:bad5", { + description = S("Bad Food (-5)"), + inventory_image = "testfood_bad2.png", + on_use = minetest.item_eat(-5), +}) + diff --git a/games/minimal/mods/testfood/mod.conf b/games/minimal/mods/testfood/mod.conf new file mode 100644 index 000000000..7bff21b6e --- /dev/null +++ b/games/minimal/mods/testfood/mod.conf @@ -0,0 +1,2 @@ +name = testfood +description = For testing food items diff --git a/games/minimal/mods/testfood/textures/testfood_bad.png b/games/minimal/mods/testfood/textures/testfood_bad.png new file mode 100644 index 000000000..6e9251440 Binary files /dev/null and b/games/minimal/mods/testfood/textures/testfood_bad.png differ diff --git a/games/minimal/mods/testfood/textures/testfood_bad2.png b/games/minimal/mods/testfood/textures/testfood_bad2.png new file mode 100644 index 000000000..22b567890 Binary files /dev/null and b/games/minimal/mods/testfood/textures/testfood_bad2.png differ diff --git a/games/minimal/mods/testfood/textures/testfood_good.png b/games/minimal/mods/testfood/textures/testfood_good.png new file mode 100644 index 000000000..31df7f5dd Binary files /dev/null and b/games/minimal/mods/testfood/textures/testfood_good.png differ diff --git a/games/minimal/mods/testfood/textures/testfood_good2.png b/games/minimal/mods/testfood/textures/testfood_good2.png new file mode 100644 index 000000000..e43dda209 Binary files /dev/null and b/games/minimal/mods/testfood/textures/testfood_good2.png differ -- cgit v1.2.3