summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2021-10-20 19:50:16 +0000
committerGitHub <noreply@github.com>2021-10-20 21:50:16 +0200
commit86b44ecd8280d8304aa26a600fc004d40a970020 (patch)
treec355bd74f3dd0321094bc03b80b2c010386d916a /games
parentc82ec8b210f613fcd5bb386a14f0a8f88591253a (diff)
downloadminetest-86b44ecd8280d8304aa26a600fc004d40a970020.tar.gz
minetest-86b44ecd8280d8304aa26a600fc004d40a970020.tar.bz2
minetest-86b44ecd8280d8304aa26a600fc004d40a970020.zip
Add no_texture.png as fallback for unspecified textures
Diffstat (limited to 'games')
-rw-r--r--games/devtest/mods/broken/init.lua11
-rw-r--r--games/devtest/mods/broken/mod.conf2
2 files changed, 13 insertions, 0 deletions
diff --git a/games/devtest/mods/broken/init.lua b/games/devtest/mods/broken/init.lua
new file mode 100644
index 000000000..04993ca16
--- /dev/null
+++ b/games/devtest/mods/broken/init.lua
@@ -0,0 +1,11 @@
+-- Register stuff with empty definitions to test if Minetest fallback options
+-- for these things work properly.
+
+-- The itemstrings are deliberately kept descriptive to keep them easy to
+-- recognize.
+
+minetest.register_node("broken:node_with_empty_definition", {})
+minetest.register_tool("broken:tool_with_empty_definition", {})
+minetest.register_craftitem("broken:craftitem_with_empty_definition", {})
+
+minetest.register_entity("broken:entity_with_empty_definition", {})
diff --git a/games/devtest/mods/broken/mod.conf b/games/devtest/mods/broken/mod.conf
new file mode 100644
index 000000000..a24378a34
--- /dev/null
+++ b/games/devtest/mods/broken/mod.conf
@@ -0,0 +1,2 @@
+name = broken
+description = Register items and an entity with empty definitions to test fallback