Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Stone (Minecraft 4k): Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: new page from Minecraft
 
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:


== Texture ==
== Texture ==
{{info needed section|describe the code used - can be found at https://github.com/NeRdTheNed/MC-TextureGen}}The texture for stone was generated by the game at runtime (similarly to [[Minecraft:Procedural animated texture generation|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.
The texture for stone was generated by the game at runtime (similarly to [[Minecraft:Procedural animated texture generation|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 stone block'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 has a 1 in 4 chance to generate 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. If it doesn't meet the 1 in 4 chance, it will simply use the randomVariation of the previous pixel, to create the stripes on the stone's texture.
 
After that, the game creates a new value called "color" which is set to {{color|#7F7F7F}}
 
# 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.<ref>https://github.com/NeRdTheNed/MC-TextureGen/blob/main/mc-texture-gen-impl/src/main/java/com/github/nerdthened/mctexturegen/generators/MC4k2Generator.java</ref>


== Data values ==
== Data values ==
Line 31: Line 46:
== Gallery ==
== Gallery ==
=== Textures ===
=== Textures ===
<gallery>
<gallery class="pixel-image">
4k-2 Stone (top texture).png|Top texture
4k-2 Stone (top texture).png|Top texture
4k-2 Stone (side texture).png|Side texture
4k-2 Stone (side texture).png|Side texture

Latest revision as of 11:13, 30 August 2026

Template:Italic title Template:Exclusive Template:InfoboxIn Minecraft:Minecraft 4k, stone has a block ID of 4.

Texture

The texture for stone was 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 stone block'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 has a 1 in 4 chance to generate 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. If it doesn't meet the 1 in 4 chance, it will simply use the randomVariation of the previous pixel, to create the stripes on the stone's texture.

After that, the game creates a new value called "color" which is set to Template:Color

  1. 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.
  2. The game multiplies the each of "color"'s RGB channels by randomVariationWithBlockSideLight to get the final RGBA color of the pixel on the texture.<ref>https://github.com/NeRdTheNed/MC-TextureGen/blob/main/mc-texture-gen-impl/src/main/java/com/github/nerdthened/mctexturegen/generators/MC4k2Generator.java</ref>

Data values

ID

Template:ID table

History

Template:HistoryTable

Gallery

Textures

Navigation

Template:Navbox Minecraft 4k

Minecraft:pt:Minecraft 4k/Pedra

Contents