aboutsummaryrefslogtreecommitdiff
path: root/stairsplus
diff options
context:
space:
mode:
authorOch Noe <och_noe@forksworld.de>2019-01-19 13:11:13 +0100
committerOch Noe <och_noe@forksworld.de>2019-01-19 13:11:13 +0100
commit71e592ed4060263b15b46acd5f9c5545932395dd (patch)
tree7a6fa14c1c1d3630bf3ff9d880ecee066a748b59 /stairsplus
parente3d8aa124d667e958cc092ce324dffb99d691a25 (diff)
downloadmoreblocks-71e592ed4060263b15b46acd5f9c5545932395dd.tar.gz
moreblocks-71e592ed4060263b15b46acd5f9c5545932395dd.tar.bz2
moreblocks-71e592ed4060263b15b46acd5f9c5545932395dd.zip
stained glass now cutable, grval-slopes repaired
Diffstat (limited to 'stairsplus')
-rw-r--r--stairsplus/init.lua5
-rw-r--r--stairsplus/registrations.lua9
-rw-r--r--stairsplus/slopes.lua2
3 files changed, 15 insertions, 1 deletions
diff --git a/stairsplus/init.lua b/stairsplus/init.lua
index 5cd415c..880349a 100644
--- a/stairsplus/init.lua
+++ b/stairsplus/init.lua
@@ -91,3 +91,8 @@ dofile(modpath .. "/slopes.lua")
dofile(modpath .. "/panels.lua")
dofile(modpath .. "/microblocks.lua")
dofile(modpath .. "/registrations.lua")
+
+
+
+
+
diff --git a/stairsplus/registrations.lua b/stairsplus/registrations.lua
index 694fb68..413ecca 100644
--- a/stairsplus/registrations.lua
+++ b/stairsplus/registrations.lua
@@ -85,7 +85,9 @@ for _, name in pairs(default_nodes) do
sounds = ndef.sounds,
tiles = tiles,
sunlight_propagates = true,
- light_source = ndef.light_source
+ light_source = ndef.light_source,
+ use_texture_alpha = ndef.use_texture_alpha
+
})
end
end
@@ -126,3 +128,8 @@ if minetest.get_modpath("wool") then
})
end
end
+
+
+
+
+
diff --git a/stairsplus/slopes.lua b/stairsplus/slopes.lua
index 7d18b3d..6d934f6 100644
--- a/stairsplus/slopes.lua
+++ b/stairsplus/slopes.lua
@@ -120,6 +120,7 @@ function register_slope(modname, subname, recipeitem, groups, images, descriptio
drop = drop,
light_source = light,
sounds = default.node_sound_stone_defaults(),
+ use_texture_alpha = use_texture_alpha
})
end
@@ -249,6 +250,7 @@ function stairsplus:register_slope(modname, subname, recipeitem, fields)
def.paramtype2 = def.paramtype2 or "facedir"
def.on_place = minetest.rotate_node
def.description = desc
+ def.use_texture_alpha = fields.use_texture_alpha
def.groups = stairsplus:prepare_groups(fields.groups)
if fields.drop and not (type(fields.drop) == "table") then
def.drop = modname.. ":slope_" ..fields.drop..alternate