How to make a transparent block like leaves with images on 2 sides?
I'm trying to make a block that looks like leaves(you can see through empty spaces) but only has images on 2 sides of the block.
The problem with my first attempt below is that it allows you to see through the ground when placing the node.
minetest.register_node("bushes:BushQuarterBranches", {
description = "BushQuarterBranches",
tiles = {
"blank.png",
"blank.png",
"BlockBranch1Lsm.png",
"BlockBranch1Rsm.png",
"blank.png",
"blank.png",},
inventory_image = "BlockBranch1Lsm.png",
is_ground_content = true,
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
The problem with this block is that all the images are invisible, (good news is you can't see through the ground)
minetest.register_node("bushes:BushQuarterBranches2", {
description = "BushQuarterBranches2",
drawtype = "allfaces_optional",
tiles = {
"blank.png",
"blank.png",
"BlockBranch1Lsm.png",
"BlockBranch1Rsm.png",
"blank.png",
"blank.png",},
paramtype = "light",
groups = {snappy=3, flammable=2, leaves=1},
sounds = default.node_sound_leaves_defaults(),
})
What can I do so I can see my images on 2 sides without seeing through the ground?
Here's the whole very-simple mod if it helps (just registers 3 nodes and some textures)
https://www.dropbox.com/s/f0lmbaz4njscajf/bushes.zip
The problem with my first attempt below is that it allows you to see through the ground when placing the node.
minetest.register_node("bushes:BushQuarterBranches", {
description = "BushQuarterBranches",
tiles = {
"blank.png",
"blank.png",
"BlockBranch1Lsm.png",
"BlockBranch1Rsm.png",
"blank.png",
"blank.png",},
inventory_image = "BlockBranch1Lsm.png",
is_ground_content = true,
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
The problem with this block is that all the images are invisible, (good news is you can't see through the ground)
minetest.register_node("bushes:BushQuarterBranches2", {
description = "BushQuarterBranches2",
drawtype = "allfaces_optional",
tiles = {
"blank.png",
"blank.png",
"BlockBranch1Lsm.png",
"BlockBranch1Rsm.png",
"blank.png",
"blank.png",},
paramtype = "light",
groups = {snappy=3, flammable=2, leaves=1},
sounds = default.node_sound_leaves_defaults(),
})
What can I do so I can see my images on 2 sides without seeing through the ground?
Here's the whole very-simple mod if it helps (just registers 3 nodes and some textures)
https://www.dropbox.com/s/f0lmbaz4njscajf/bushes.zip