Skip to content

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!

Glass Results

Basic Glass

FORMAT VERSION 1.20.30

This example requires basic knowledge of blocks to understand. Check out the blocks guide before starting.

This will create a custom glass block which appears the same as vanilla glass blocks!

BP/blocks/custom_glass.json
json
{
  "format_version": "1.20.30",
  "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"
  }
}

Vertically-Connecting Glass

FORMAT & MIN ENGINE VERSION 1.20.30

This example requires advanced knowledge of blocks and Molang to understand. Check out the blocks guide, block states and Molang before starting.

EXPERIMENTAL

Requires Holiday Creator Features for use of minecraft:unit_cube and to trigger events.