Mineuniverse
Bricks (Minecraft 4k)

Bricks (Minecraft 4k)

In Minecraft 4k, bricks have a block ID of 5.

2 min read Updated 7 views
Blocks Blocks with no item form Minecraft 4k
Advertisement Remove ads with Premium →
Contents (7)
  1. Texture
  2. Data values
  3. ID
  4. History
  5. Gallery
  6. Textures
  7. Navigation
This feature is exclusive to Minecraft 4k.
Bricks
4k-2 Bricks.png: Infobox image for Minecraft infobox 'Bricks'

In Minecraft 4k, bricks have a block ID of 5.

Texture

The texture for bricks were generated by the game at runtime (similarly to what was done in Java Edition at that time for water and lava), rather than being stored inside of the jar as an image file.

As with all other block textures in Minecraft 4k, the brick's textures are generated by going over every pixel in the texture left to right, top to bottom.

For each texture, there is a value that will be called "subTexture".

  • subTexture = 0 is the top texture
  • subTexture = 1 is the side texture
  • subTexture = 2 is the bottom texture

For each pixel, the game generates a new "randomVariation", which is calculated by subtracting a random value from 0 to 95 from 255, resulting in a random value between 160 and 255.

After that, the game creates a new value called "color" which determined with the following steps:

  • If ((x + (floor(y / 4) * 4)) mod 8) = 0 (for the vertical lines) or (y mod 4) = 0 (for the horizontal lines) where x and y are the "index" of the pixels; that is the amount of pixels from the left and topmost pixels respectively, "color" will be set to
     #BCAFA5
    (note that the floor function shown in the first equation is not in code, as it is a consequence of y being an int)
  • Else, if both condition are false, "color" will be set to
     #B53A15

The game then creates a new value, that will be called "randomVariationWithBlockSideLight", where

  • If subTexture = 2 (the bottom texture) set randomVariationWithBlockSideLight to randomVariation ÷ 2.
  • Else, set randomVariationWithBlockSideLight to randomVariation.

The game multiplies the each of "color"'s RGB channels by randomVariationWithBlockSideLight to get the final RGBA color of the pixel on the texture.[1]

Data values

ID

NameNumeric ID Form
BlockSprite bricks-4k.png: Sprite image for bricks-4k in Minecraft [No displayed name]5Block

History

Minecraft 4k
4k-2 Added bricks.

Textures

Advertisement Remove ads with Premium →

More in Blocks with no item form

View all 20 →
AirAirAir is an invisible block used to define unoccupied space where other blocks and items could exist; it represents the absence of a block or an item. It is…Bubble ColumnBubble ColumnA bubble column is an air-providing vertical water current. It is created by magma blocks and soul sand and, depending on the block used, will either pull…Dirt (Minecraft 4k)Dirt (Minecraft 4k)In Minecraft 4k, there are 10 variants of dirt, but they only have slight texture differences. Many of them appear to be a placeholder texture as ID 9 was…End Gateway (block)End Gateway (block)The End gateway is a block that forms a part of End gateways, which teleport the player between the central island and the outer islands in the End. It is…End Portal (block)End Portal (block)The End portal block is a block generated when an End portal or exit portal is activated, which teleports the player between the Overworld and the End. It…FireFireFire is a non-solid block that can spread to nearby flammable blocks and destroy them.Grass Block (Minecraft 4k)Grass Block (Minecraft 4k)In Minecraft 4k, the grass block has a block ID of 1. It was originally the XOR Block. Unlike normal Minecraft, grass blocks do not turn into dirt when a…Invisible BedrockInvisible BedrockInvisible bedrock is an invisible block used to create a world boundary around Old worlds and the void floor in Bedrock Edition.
Advertisement Remove ads with Premium →

Related mods

Building Bricks Building Bricks Mod · 621.4K downloads Colored Bricks Mod Colored Bricks Mod Mod · 568.5K downloads Snow Bricks Snow Bricks Mod · 209.2K downloads Connected Bricks Connected Bricks Resource Pack · 191.5K downloads
Explore the Minecraft Wiki
Blocks, items, mobs, biomes and game mechanics — all in one place.
Wiki home