#Issues with glass blocks

1 messages · Page 1 of 1 (latest)

last hill
#

I’ve been having issues with getting glass blocks to work correctly. When using the 1.16.100 format version, there would be a weird shadow, despite following the wiki template to a T. (even tried setting face_dimming and ambient_occlusion to false, but that didn’t work). I tried converting to 1.19.40 (I also tried 1.19.50), but now it isn’t transparent at all.

{
"format_version": "1.19.50",
"minecraft:block": {
"description": {
"identifier": "cav:end_glass",
"menu_category": {
"category": "construction",
"group": "itemGroup.name.glass"
},
"components": {
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 0.6
},
"minecraft:destructible_by_explosion": {
"explosion_resistance": 30
},
"minecraft:light_dampening": 0.0,
"minecraft:light_emission": 0.0,
"minecraft:map_color": "#DA73EC",
"minecraft:loot": "loot_tables/blocks/end_glass.json",
"minecraft:material_instances": {
"*": {
"texture": "end_glass",
"face_dimming": false,
"ambient_occulusion": false,
"render_method": "blend"
}
}
}
}
}
}

#

@cobalt galleon Since you seem to have some knowledge in 1.19 documentation (I followed your guide), do you think you’d be able to help me here?

autumn arrow
last hill
autumn arrow
#

Send texture file

last hill
last hill
autumn arrow
#

the png

last hill
#

Oh alright. I don’t see how that could be the issue though since it worked just fine in 1.16.100 format

autumn arrow
#

is the left and the right supposed to be the same?

dry abyss
#

I can but it messes with the alpha

#

im guessing the white is supposed to be transparent

last hill
last hill
autumn arrow
#

it is like a window, shows what is behind it and if a shadow there, you see it. I don't see an issue with it... did you try it in bright spot on white blocks?

dry abyss
autumn arrow
#

looks like yellow glass and is translucent

last hill
dry abyss
last hill
#

here it is on white concrete

dry abyss
#

Hm weird everything seems fine

#

oh wait

#

add "minecraft:unit_cube":{}

#

that usually causes things not to work

last hill
#

I'll try that. in format 1.16.100, that caused a different issue. Hopefully it'll work in 1.19.40 though

last hill
wild furnace
#

@last hill what is issue?

last hill
# last hill I’ve been having issues with getting glass blocks to work correctly. When using ...

@wild furnace
When using the 1.16.100 format, all custom glass blocks have a shadow- despite block_light_absorption being 0, and face_dimming and ambient_occlusion were both set to false.

I figured maybe changing to 1.19.40 format could yield better results, but despite converting everything correctly according to Microsoft’s documentation, the render method is not working. Everything is completely opaque. I have the block’s JSON file attached in case I missed something. (I’ve tried both 1.19.40 and 1.19.50)

whole marten
#

I had a similar problem in a glass pack I made with 1.16.100 formatting. I eventually just gave in. I think I updated them recently and the transparency works. I’ll post the code here in a bit.

#

Well.... apparently this doesn't help much. The transparency still works, but apparently there is still a shadow even after updating. Maybe this will be a step in the right direction for you.

#
{
    "format_version": "1.19.5",
    "minecraft:block": {
        "description": {
            "identifier": "glass:borderless_blue_glass",
            "is_experimental": false,
            "register_to_creative_menu": true
                },
        "components": {
            "minecraft:material_instances": {  
                    "*":{
                      "texture": "borderless_blue_glass",
                      "render_method": "blend",
                      "face_dimming": false
                    }
                  },
            "minecraft:destructible_by_explosion":true,
            "minecraft:destructible_by_mining":{
                "seconds_to_destroy": 0
            },
            "minecraft:friction": 0.1,
            "minecraft:map_color": "#0006b8",
            "minecraft:light_dampening": 0,
            "minecraft:light_emission": 0
        }
    }
}```