aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/testfood
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2020-05-26 00:17:52 +0200
committerGitHub <noreply@github.com>2020-05-26 00:17:52 +0200
commit083b285f4319c470f307f0b52f03a2fb68facd38 (patch)
treebdd02540ad58756a38606f03a995ab837a176709 /games/devtest/mods/testfood
parentb546e8938d41aa9e3101fb9d4d5b02924ed73b60 (diff)
downloadminetest-083b285f4319c470f307f0b52f03a2fb68facd38.tar.gz
minetest-083b285f4319c470f307f0b52f03a2fb68facd38.tar.bz2
minetest-083b285f4319c470f307f0b52f03a2fb68facd38.zip
Rename “Minimal development test” to “Development Test” (#9928)
Diffstat (limited to 'games/devtest/mods/testfood')
-rw-r--r--games/devtest/mods/testfood/init.lua24
-rw-r--r--games/devtest/mods/testfood/mod.conf2
-rw-r--r--games/devtest/mods/testfood/textures/testfood_bad.pngbin0 -> 126 bytes
-rw-r--r--games/devtest/mods/testfood/textures/testfood_bad2.pngbin0 -> 133 bytes
-rw-r--r--games/devtest/mods/testfood/textures/testfood_good.pngbin0 -> 129 bytes
-rw-r--r--games/devtest/mods/testfood/textures/testfood_good2.pngbin0 -> 145 bytes
6 files changed, 26 insertions, 0 deletions
diff --git a/games/devtest/mods/testfood/init.lua b/games/devtest/mods/testfood/init.lua
new file mode 100644
index 000000000..a6236ff68
--- /dev/null
+++ b/games/devtest/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/devtest/mods/testfood/mod.conf b/games/devtest/mods/testfood/mod.conf
new file mode 100644
index 000000000..7bff21b6e
--- /dev/null
+++ b/games/devtest/mods/testfood/mod.conf
@@ -0,0 +1,2 @@
+name = testfood
+description = For testing food items
diff --git a/games/devtest/mods/testfood/textures/testfood_bad.png b/games/devtest/mods/testfood/textures/testfood_bad.png
new file mode 100644
index 000000000..6e9251440
--- /dev/null
+++ b/games/devtest/mods/testfood/textures/testfood_bad.png
Binary files differ
diff --git a/games/devtest/mods/testfood/textures/testfood_bad2.png b/games/devtest/mods/testfood/textures/testfood_bad2.png
new file mode 100644
index 000000000..22b567890
--- /dev/null
+++ b/games/devtest/mods/testfood/textures/testfood_bad2.png
Binary files differ
diff --git a/games/devtest/mods/testfood/textures/testfood_good.png b/games/devtest/mods/testfood/textures/testfood_good.png
new file mode 100644
index 000000000..31df7f5dd
--- /dev/null
+++ b/games/devtest/mods/testfood/textures/testfood_good.png
Binary files differ
diff --git a/games/devtest/mods/testfood/textures/testfood_good2.png b/games/devtest/mods/testfood/textures/testfood_good2.png
new file mode 100644
index 000000000..e43dda209
--- /dev/null
+++ b/games/devtest/mods/testfood/textures/testfood_good2.png
Binary files differ