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

Minecraft:Dirt (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 30: Line 30:


== Texture ==
== Texture ==
{{info needed section|describe the code used - can be found at https://github.com/NeRdTheNed/MC-TextureGen}}
The texture for dirt 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 dirt 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 dirt 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 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 is set to {{color|#966C4A}}
 
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 154: Line 167:
=== Textures ===
=== Textures ===
==== ID 2 ====
==== ID 2 ====
<gallery>
<gallery class="pixel-image">
File:4k-2 Dirt 2 (top texture).png|Top texture
File:4k-2 Dirt 2 (top texture).png|Top texture
File:4k-2 Dirt 2 (side texture).png|Side texture
File:4k-2 Dirt 2 (side texture).png|Side texture
Line 161: Line 174:


==== ID 3 ====
==== ID 3 ====
<gallery>
<gallery class="pixel-image">
File:4k-2 Dirt 3 (top texture).png|Top texture
File:4k-2 Dirt 3 (top texture).png|Top texture
File:4k-2 Dirt 3 (side texture).png|Side texture
File:4k-2 Dirt 3 (side texture).png|Side texture
Line 168: Line 181:


==== ID 6 ====
==== ID 6 ====
<gallery>
<gallery class="pixel-image">
File:4k-2 Dirt 6 (top texture).png|Top texture
File:4k-2 Dirt 6 (top texture).png|Top texture
File:4k-2 Dirt 6 (side texture).png|Side texture
File:4k-2 Dirt 6 (side texture).png|Side texture
Line 175: Line 188:


==== ID 9 ====
==== ID 9 ====
<gallery>
<gallery class="pixel-image">
File:4k-2 Dirt 9 (top texture).png|Top texture
File:4k-2 Dirt 9 (top texture).png|Top texture
File:4k-2 Dirt 9 (side texture).png|Side texture
File:4k-2 Dirt 9 (side texture).png|Side texture
Line 182: Line 195:


==== ID 10 ====
==== ID 10 ====
<gallery>
<gallery class="pixel-image">
File:4k-2 Dirt 10 (top texture).png|Top texture
File:4k-2 Dirt 10 (top texture).png|Top texture
File:4k-2 Dirt 10 (side texture).png|Side texture
File:4k-2 Dirt 10 (side texture).png|Side texture
Line 189: Line 202:


==== ID 11 ====
==== ID 11 ====
<gallery>
<gallery class="pixel-image">
File:4k-2 Dirt 11 (top texture).png|Top texture
File:4k-2 Dirt 11 (top texture).png|Top texture
File:4k-2 Dirt 11 (side texture).png|Side texture
File:4k-2 Dirt 11 (side texture).png|Side texture
Line 196: Line 209:


==== ID 12 ====
==== ID 12 ====
<gallery>
<gallery class="pixel-image">
File:4k-2 Dirt 12 (top texture).png|Top texture
File:4k-2 Dirt 12 (top texture).png|Top texture
File:4k-2 Dirt 12 (side texture).png|Side texture
File:4k-2 Dirt 12 (side texture).png|Side texture
Line 203: Line 216:


==== ID 13 ====
==== ID 13 ====
<gallery>
<gallery class="pixel-image">
File:4k-2 Dirt 13 (top texture).png|Top texture
File:4k-2 Dirt 13 (top texture).png|Top texture
File:4k-2 Dirt 13 (side texture).png|Side texture
File:4k-2 Dirt 13 (side texture).png|Side texture
Line 210: Line 223:


==== ID 14 ====
==== ID 14 ====
<gallery>
<gallery class="pixel-image">
File:4k-2 Dirt 14 (top texture).png|Top texture
File:4k-2 Dirt 14 (top texture).png|Top texture
File:4k-2 Dirt 14 (side texture).png|Side texture
File:4k-2 Dirt 14 (side texture).png|Side texture
Line 217: Line 230:


==== ID 15 ====
==== ID 15 ====
<gallery>
<gallery class="pixel-image">
File:4k-2 Dirt 15 (top texture).png|Top texture
File:4k-2 Dirt 15 (top texture).png|Top texture
File:4k-2 Dirt 15 (side texture).png|Side texture
File:4k-2 Dirt 15 (side texture).png|Side texture

Latest revision as of 11:05, 30 August 2026

Template:Italic title Template:Exclusive Template:Infobox In Minecraft:Minecraft 4k, there are 10 variants of dirt, they only have slight texture differences. Many of them appear to be a placeholder texture as ID 9 was replaced with water in the JavaScript version.

Texture

The texture for dirt 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 dirt 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 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 is set to Template:Color

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

ID

Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table

History

Template:HistoryTable

Gallery

Textures

ID 2

ID 3

ID 6

ID 9

ID 10

ID 11

ID 12

ID 13

ID 14

ID 15

Navigation

Template:Navbox Minecraft 4k

Minecraft:pt:Minecraft 4k/Terra