I have a problem with tinted glass I am working on.
So I am making a skyscraper material mod. I am trying to make Black tinted glass, and I have the transparency but I can see through the map. Like I can see underground and through nodes that are right next to my glass. Does anybody know what I am doing wrong?
Here is the code:
Please note that I am not a good person at coding. I have only made 1 successful mod so far. Please do not judge.
Here is the code:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_node("skyscraper_material:tinted_glass", {
description = "Black Tinted Glass",
inventory = {"black tinted glass"},
paramtype = "light",
drawtype = {"glasslike"},
use_texture_alpha = true,
groups = {cracky=3, crumbly=1},
tile_images = {"black_tinted_glass.png"},
sunlight_propagates = true,
inventory_image = minetest.inventorycube("black_tinted_glass.png"),
})
Please note that I am not a good person at coding. I have only made 1 successful mod so far. Please do not judge.