forked from MineClone5/MineClone5
Apply semi-transparency to stained glass panes
This commit is contained in:
parent
9ecae11f66
commit
0bbb60bcf6
|
@ -102,6 +102,7 @@ function xpanes.register_pane(name, def)
|
||||||
wield_image = def.wield_image,
|
wield_image = def.wield_image,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
tiles = {def.textures[3], def.textures[3], def.textures[1]},
|
tiles = {def.textures[3], def.textures[3], def.textures[1]},
|
||||||
|
use_texture_alpha = def.use_texture_alpha,
|
||||||
groups = flatgroups,
|
groups = flatgroups,
|
||||||
drop = "xpanes:" .. name .. "_flat",
|
drop = "xpanes:" .. name .. "_flat",
|
||||||
sounds = def.sounds,
|
sounds = def.sounds,
|
||||||
|
@ -126,6 +127,7 @@ function xpanes.register_pane(name, def)
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
description = def.description,
|
description = def.description,
|
||||||
tiles = {def.textures[3], def.textures[3], def.textures[1]},
|
tiles = {def.textures[3], def.textures[3], def.textures[1]},
|
||||||
|
use_texture_alpha = def.use_texture_alpha,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
drop = "xpanes:" .. name .. "_flat",
|
drop = "xpanes:" .. name .. "_flat",
|
||||||
sounds = def.sounds,
|
sounds = def.sounds,
|
||||||
|
@ -150,6 +152,7 @@ local pane = function(description, node, append)
|
||||||
xpanes.register_pane("pane"..append, {
|
xpanes.register_pane("pane"..append, {
|
||||||
description = description,
|
description = description,
|
||||||
textures = {"xpanes_pane_glass"..append..".png","xpanes_pane_half_glass"..append..".png","xpanes_top_glass"..append..".png"},
|
textures = {"xpanes_pane_glass"..append..".png","xpanes_pane_half_glass"..append..".png","xpanes_top_glass"..append..".png"},
|
||||||
|
use_texture_alpha = true,
|
||||||
inventory_image = "xpanes_pane_glass"..append..".png",
|
inventory_image = "xpanes_pane_glass"..append..".png",
|
||||||
wield_image = "xpanes_pane_glass"..append..".png",
|
wield_image = "xpanes_pane_glass"..append..".png",
|
||||||
sounds = mcl_sounds.node_sound_glass_defaults(),
|
sounds = mcl_sounds.node_sound_glass_defaults(),
|
||||||
|
|
Loading…
Reference in New Issue