aboutsummaryrefslogtreecommitdiff
path: root/nodes.lua
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-04-06 21:29:47 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-04-06 21:29:47 +0200
commitb6c1121e2bc112cf11c2b39a0c4ef46a4982825d (patch)
tree9707745a8af58cd3d7fdce2faea07ff8ea1e4212 /nodes.lua
parent9ccd07171051737c3c258076f683aa0b95d9c886 (diff)
downloadmoreblocks-b6c1121e2bc112cf11c2b39a0c4ef46a4982825d.tar.gz
moreblocks-b6c1121e2bc112cf11c2b39a0c4ef46a4982825d.tar.bz2
moreblocks-b6c1121e2bc112cf11c2b39a0c4ef46a4982825d.zip
added missing textures
Diffstat (limited to 'nodes.lua')
-rw-r--r--nodes.lua32
1 files changed, 25 insertions, 7 deletions
diff --git a/nodes.lua b/nodes.lua
index 54ff1d7..895a292 100644
--- a/nodes.lua
+++ b/nodes.lua
@@ -179,7 +179,7 @@ local nodes = {
description = S("Clean Glass"),
drawtype = "glasslike_framed_optional",
tiles = {"moreblocks_clean_glass.png", "moreblocks_clean_glass_detail.png"},
- tiles = {"moreblocks_clean_glass.png"},
+ -- tiles = {"moreblocks_clean_glass.png"},
one_texture = true,
paramtype = "light",
sunlight_propagates = true,
@@ -346,7 +346,7 @@ local nodes = {
description = S("Glow Glass"),
drawtype = "glasslike_framed_optional",
tiles = {"moreblocks_glow_glass.png", "moreblocks_glow_glass_detail.png"},
- tiles = {"moreblocks_glow_glass.png"},
+ -- tiles = {"moreblocks_glow_glass.png"},
one_texture = true,
paramtype = "light",
sunlight_propagates = true,
@@ -358,7 +358,7 @@ local nodes = {
description = S("Trap Glow Glass"),
drawtype = "glasslike_framed_optional",
tiles = {"moreblocks_trap_glass.png", "moreblocks_glow_glass_detail.png"},
- --tiles = {"moreblocks_trap_glass.png"},
+ -- tiles = {"moreblocks_trap_glass.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 11,
@@ -371,9 +371,9 @@ local nodes = {
description = S("Super Glow Glass"),
drawtype = "glasslike_framed_optional",
tiles = {"moreblocks_super_glow_glass.png", "moreblocks_super_glow_glass_detail.png"},
- --tiles = {"moreblocks_super_glow_glass.png"},
- one_texture = true,
+ -- tiles = {"moreblocks_super_glow_glass.png"},
-- tiles = {"default_glass.png^[colorize:#FFFF78"},
+ one_texture = true,
paramtype = "light",
sunlight_propagates = true,
light_source = 14,
@@ -384,7 +384,7 @@ local nodes = {
description = S("Trap Super Glow Glass"),
drawtype = "glasslike_framed_optional",
tiles = {"moreblocks_trap_super_glow_glass.png", "moreblocks_super_glow_glass_detail.png"},
- --tiles = {"moreblocks_trap_super_glow_glass.png"},
+ -- tiles = {"moreblocks_trap_super_glow_glass.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 14,
@@ -432,11 +432,15 @@ for name, def in pairs(nodes) do
minetest.register_alias(name, "moreblocks:" ..name)
if not def.no_stairs then
local groups = {}
+ temp_tiles = def.tiles
+ if def.one_texture then
+ temp_tiles = { def.tiles[1]}
+ end
for k, v in pairs(def.groups) do groups[k] = v end
stairsplus:register_all("moreblocks", name, "moreblocks:" ..name, {
description = def.description,
groups = groups,
- tiles = def.tiles,
+ tiles = temp_tiles,
sunlight_propagates = def.sunlight_propagates,
light_source = def.light_source,
sounds = def.sounds,
@@ -456,3 +460,17 @@ minetest.register_craftitem("moreblocks:nothing", {
inventory_image = "invisible.png",
on_use = function() end,
})
+
+
+
+
+
+
+
+
+
+
+
+
+
+