Custom Glass
experimental
expert
FORMAT VERSION 1.21.20
This example requires basic knowledge of blocks to understand. Check out the blocks guide before starting.
Making glass blocks may seem like a simple task, however it comes with many drawbacks as you will find, this tutorial aims to help you achieve a vanilla like glass block.
By the end you should be able to create something like this!
This will create a custom glass block which appears the same as vanilla glass blocks!
BP/blocks/custom_glass.json
json
{
"format_version": "1.21.20",
"minecraft:block": {
"description": {
"identifier": "wiki:custom_glass",
"menu_category": {
"category": "construction",
"group": "itemGroup.name.glass"
}
},
"components": {
"minecraft:light_dampening": 0,
"minecraft:material_instances": {
"*": {
"render_method": "blend" // Allows translucency
}
}
}
}
}
RP/blocks.json
json
{
"wiki:custom_glass": {
"textures": "custom_glass", // Shortname defined in `RP/textures/terrain_texture.json`
"sound": "glass"
}
}