aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods
diff options
context:
space:
mode:
authorVitaliy <silverunicorn2011@yandex.ru>2017-10-15 10:34:14 +0300
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-10-15 09:34:14 +0200
commit75320e7e88ab5088a46c9e42c1e789cbdacb13b0 (patch)
treeda71a3134f8b42bdabf25ef1df14c5e1a77a439e /games/minimal/mods
parent6bab695479d42ac2b051b8a35639c32b22efbf8d (diff)
downloadminetest-75320e7e88ab5088a46c9e42c1e789cbdacb13b0.tar.gz
minetest-75320e7e88ab5088a46c9e42c1e789cbdacb13b0.tar.bz2
minetest-75320e7e88ab5088a46c9e42c1e789cbdacb13b0.zip
Real global textures (#6105)
* Real global textures * Add world-aligned textures * Update minimal to support world-aligned tiles * Update minimal
Diffstat (limited to 'games/minimal/mods')
-rw-r--r--games/minimal/mods/experimental/depends.txt2
-rw-r--r--games/minimal/mods/experimental/init.lua51
-rw-r--r--games/minimal/mods/experimental/textures/experimental_tiled.pngbin0 -> 1041 bytes
-rw-r--r--games/minimal/mods/stairs/init.lua4
4 files changed, 54 insertions, 3 deletions
diff --git a/games/minimal/mods/experimental/depends.txt b/games/minimal/mods/experimental/depends.txt
index 3a7daa1d7..3296b1e0a 100644
--- a/games/minimal/mods/experimental/depends.txt
+++ b/games/minimal/mods/experimental/depends.txt
@@ -1,2 +1,2 @@
default
-
+stairs
diff --git a/games/minimal/mods/experimental/init.lua b/games/minimal/mods/experimental/init.lua
index 657148dce..578c35364 100644
--- a/games/minimal/mods/experimental/init.lua
+++ b/games/minimal/mods/experimental/init.lua
@@ -501,6 +501,57 @@ minetest.register_node("experimental:tester_node_1", {
end,
})
+minetest.register_node("experimental:tiled", {
+ description = "Tiled stone",
+ tiles = {{
+ name = "experimental_tiled.png",
+ align_style = "world",
+ scale = 8,
+ }},
+ groups = {cracky=2},
+})
+
+stairs.register_stair_and_slab("tiled_n", "experimental:tiled",
+ {cracky=2},
+ {{name="experimental_tiled.png", align_style="node", scale=8}},
+ "Tiled stair (node-aligned)",
+ "Tiled slab (node-aligned)")
+
+stairs.register_stair_and_slab("tiled", "experimantal:tiled",
+ {cracky=2},
+ {{name="experimental_tiled.png", align_style="world", scale=8}},
+ "Tiled stair",
+ "Tiled slab")
+
+minetest.register_craft({
+ output = 'experimental:tiled 4',
+ recipe = {
+ {'default:cobble', '', 'default:cobble'},
+ {'', '', ''},
+ {'default:cobble', '', 'default:cobble'},
+ }
+})
+
+minetest.register_craft({
+ output = 'stairs:stair_tiled',
+ recipe = {{'stairs:stair_tiled_n'}}
+})
+
+minetest.register_craft({
+ output = 'stairs:stair_tiled_n',
+ recipe = {{'stairs:stair_tiled'}}
+})
+
+minetest.register_craft({
+ output = 'stairs:slab_tiled',
+ recipe = {{'stairs:slab_tiled_n'}}
+})
+
+minetest.register_craft({
+ output = 'stairs:slab_tiled_n',
+ recipe = {{'stairs:slab_tiled'}}
+})
+
minetest.register_craftitem("experimental:tester_tool_1", {
description = "Tester Tool 1",
inventory_image = "experimental_tester_tool_1.png",
diff --git a/games/minimal/mods/experimental/textures/experimental_tiled.png b/games/minimal/mods/experimental/textures/experimental_tiled.png
new file mode 100644
index 000000000..67397b902
--- /dev/null
+++ b/games/minimal/mods/experimental/textures/experimental_tiled.png
Binary files differ
diff --git a/games/minimal/mods/stairs/init.lua b/games/minimal/mods/stairs/init.lua
index c3bbc561e..74b7890ee 100644
--- a/games/minimal/mods/stairs/init.lua
+++ b/games/minimal/mods/stairs/init.lua
@@ -2,7 +2,7 @@ stairs = {}
-- Node will be called stairs:stair_<subname>
function stairs.register_stair(subname, recipeitem, groups, images, description)
- minetest.register_node("stairs:stair_" .. subname, {
+ minetest.register_node(":stairs:stair_" .. subname, {
description = description,
drawtype = "nodebox",
tiles = images,
@@ -31,7 +31,7 @@ end
-- Node will be called stairs:slab_<subname>
function stairs.register_slab(subname, recipeitem, groups, images, description)
- minetest.register_node("stairs:slab_" .. subname, {
+ minetest.register_node(":stairs:slab_" .. subname, {
description = description,
drawtype = "nodebox",
tiles = images,