{{italic title}}
{{discontinued|This edition is no longer updated but can still be downloaded through third-party means.}}
{{Infobox program
| title=''Minecraft 4k''
| image=Minecraft 4k.png
| imagesize=280px
| author=[[Notch|Markus "Notch" Persson]]
| platform={{w|Java (software platform)|Java}} {{w|Web browser|🌐}}
| programming language={{OS|Java}} <sup>(Java version)</sup><br />{{OS|JS}} <sup>(Web version)</sup>
| date=December 2, 2009<ref name="forum"/>
| version=N/A
| size=2.52 KiB (2,581 bytes)
| license=Proprietary
| source available=No
}}

'''''Minecraft 4k''''' was an edition of ''[[Minecraft]]'' developed for the 2010 {{w|Java 4K Game Programming Contest|Java 4K}} contest, where the entry games were required to be within four {{w|Byte#Multiple-byte units|kibibytes}} (4096 bytes) in size.<ref name="forum"> {{citation|url=https://web.archive.org/web/20150809054725/http://www.java-gaming.org/index.php?topic=21638.0|title=Minecraft 4k (very early build)|website=Java-Gaming.org|author=Markus_Persson|date=December 3, 2009}}</ref>

The initial version, released on December 2, 2009, was more limited than any other edition of ''Minecraft'' ever released to the public, including the pre-classic version that is available from the ''[[Minecraft Launcher]]''. An update on December 4, 2009, changed the controls and added widescreen, more [[block]]s, and the ability to place and destroy blocks.<ref>{{citation|url=https://web.archive.org/web/20180514175231/http://www.java-gaming.org/topics/minecraft-4k-very-early-build/21638/msg/177585/view.html|title=Minecraft 4k (very early build)|website=Java-Gaming.org|author=Markus_Persson|date=December 3, 2009|quote=Widescreen! Many block types! Building and destroying blocks! Different mouse look that frees up both buttons! Less bugs!
Also, the .pack.gz is STILL under 2kb :P}}</ref>

The [https://www.mojang.com/notch/j4k/minecraft4k/ original page] hosting the game was removed in November 2014. Its archive can still be accessed using the [https://web.archive.org/web/20141101124251/https://www.mojang.com/notch/j4k/minecraft4k/ Wayback Machine]. The executable is also available on the [https://archive.org/details/Minecraft4K Internet Archive].

On December 2, 2012, Notch released [http://jsfiddle.net/uzMPU a JavaScript version of ''Minecraft 4k'']. It is not possible to move or look around in this version, though the camera  or world does move by itself, and there is a blue water-like block in addition to the other block types.<ref>{{tweet|notch|275331530040160256|Trying http://jsfiddle.net: http://jsfiddle.net/uzMPU/|December 2, 2012}}</ref>

==Gameplay==
=== General===
The [[player]] can place and destroy [[block]]s. The only block the player can place is [[grass]], reminiscent of the very early builds of ''Minecraft'' internally called [[RubyDung]] that are available from the ''[[Minecraft Launcher]]''. [[Leaves]] do not decay.

=== World===
The same 64×64×63 [[block]] world is generated every time the game is loaded. The only blocks in the game – [[air]], [[grass|grass block]], [[dirt]], [[stone]], [[bricks]], [[wood]], and [[leaves]] – are scattered throughout the world. No [[mob]]s exist.

The initial build of the game only has one type of block, which uses a XOR fractal as a texture.

An invisible wall surrounds the world, preventing the [[player]] from escaping, similar to [[invisible bedrock]] or an [[old]] world.

===Controls===
The [[player]] can move around using standard {{Key|W|A|S|D}} controls, as well as jump using {{Key|Space}}.

Left- and right-clicking controls are different from traditional ''Minecraft'' controls: left-click and middle-click places [[block]]s, while right-click destroys them. Moving the mouse turns the camera "smoothly," similar to the cinematic camera {{in|je}}, and cannot be changed in this version.

The camera acts differently to ''Minecraft'''s. The camera only moves when the player moves the cursor a considerably large distance away from the center of the game's {{w|viewport}}. Blocks in the world are selected by the cursor, rather than the center of the viewport.

The game lacks any sort of options menu or HUD.

==Graphics==
The graphics appear pixelated as a result of the game rendering at a low resolution. Even when running at a higher resolution, the game does not scale the resolution properly and the noisy appearance is retained. [[Block]] textures are similar to those used in [[Java Edition Classic]], as [[Classic 0.30 (Creative)]] was the most recent version of ''Minecraft'' at the time. Most blocks appear noisier than their ''Minecraft'' counterparts, although some blocks, especially stone, are very different. The [[sky]] is black due to the lack of a skybox.

When hovering the cursor over a block, the outline of the block is thick and white, as opposed to ''Minecraft'''s thin gray selection outline.

<gallery>
Minecraft 4k textures.png|A comparison of ''Minecraft 4k'''s and ''Minecraft'' Classic's [[block]] textures.
4k-Block-Selection-Outline.png|A screenshot showing the thick white outline around the selected block.
4k flashpoint.png|Another screenshot showing the same.
4k Comparison.gif|The first and second versions of ''Minecraft 4k''.
4k JavaScript.gif|The JavaScript version of ''Minecraft 4k''.
</gallery>

==Blocks==
The first version of the game has a single non-air block.

In the second version, block IDs are stored with four bits, resulting in 16 possible IDs. The majority of these are filled in by slightly differently textured dirt.
{{More images|Section=1|the blue blocks from the javascript version}}
{| class="wikitable" style="text-align:center"
|-
! rowspan="2" |ID
! rowspan="2" | Block
! colspan="3" |Textures
! rowspan="2" |Render 
|-
!Top
!Side
!Bottom
|-
! colspan="6" |4k-1
|-
|0
|Air
| colspan="3" |n/a
|
[[File:Blank.png|64px]]
|-
|1
|"XOR" block
|{{pximg|XOR (top texture) 4K1.png|32px}}
|{{pximg|XOR (side texture) 4K1.png|32px}}
|{{pximg|XOR (bottom texture) 4K1.png|32px}}
|[[File:XOR 4K1.png|64px]]
|-
! colspan="6" |4k-2 
|-
|0
|Air
| colspan="3" |n/a
|
[[File:Blank.png|64px]]
|-
|1
|Grass Block
|{{pximg|Grass Block (top texture) 4K2.png|32px}}
|{{pximg|Grass Block (side texture) 4K2.png|32px}}
|{{pximg|Grass Block (bottom texture) 4K2.png|32px}}
|[[File:Grass Block 4K2.png|64px]]
|-
|2
|Dirt
|{{pximg|Dirt 2 (top texture) 4K2.png|32px}}
|{{pximg|Dirt 2 (side texture) 4K2.png|32px}}
|{{pximg|Dirt 2 (bottom texture) 4K2.png|32px}}
|[[File:Dirt 2 4K2.png|64px]]
|-
|3
|Dirt
|{{pximg|Dirt 3 (top texture) 4K2.png|32px}}
|{{pximg|Dirt 3 (side texture) 4K2.png|32px}}
|{{pximg|Dirt 3 (bottom texture) 4K2.png|32px}}
|[[File:Dirt 3 4K2.png|64px|link=Special:FilePath/Dirt_3_4K2.png]]
|-
|4
|Stone
|{{pximg|Stone (top texture) 4K2.png|32px}}
|{{pximg|Stone (side texture) 4K2.png|32px}}
|{{pximg|Stone (bottom texture) 4K2.png|32px}}
|[[File:Stone 4K2.png|64px]]
|-
|5
|Bricks
|{{pximg|Bricks (top texture) 4K2.png|32px}}
|{{pximg|Bricks (side texture) 4K2.png|32px}}
|{{pximg|Bricks (bottom texture) 4K2.png|32px}}
|[[File:Bricks 4K2.png|64px]]
|-
|6
|Dirt
|{{pximg|Dirt 6 (top texture) 4K2.png|32px}}
|{{pximg|Dirt 6 (side texture) 4K2.png|32px}}
|{{pximg|Dirt 6 (bottom texture) 4K2.png|32px}}
|[[File:Dirt 6 4K2.png|64px|link=Special:FilePath/Dirt_6_4K2.png]]
|-
|7
|Log
|{{pximg|Log (top texture) 4K2.png|32px}}
|{{pximg|Log (side texture) 4K2.png|32px}}
|{{pximg|Log (bottom texture) 4K2.png|32px}}
|[[File:Log 4K2.png|64px]]
|-
|8
|Leaves
|{{pximg|Leaves (top texture) 4K2.png|32px}}
|{{pximg|Leaves (side texture) 4K2.png|32px}}
|{{pximg|Leaves (bottom texture) 4K2.png|32px}}
|[[File:Leaves 4K2.png|64px]]
|-
|9
|Dirt
|{{pximg|Dirt 9 (top texture) 4K2.png|32px}}
|{{pximg|Dirt 9 (side texture) 4K2.png|32px}}
|{{pximg|Dirt 9 (bottom texture) 4K2.png|32px}}
|[[File:Dirt 9 4K2.png|64px|link=Special:FilePath/Dirt_9_4K2.png]]
|-
| 10
|Dirt
|{{pximg|Dirt 10 (top texture) 4K2.png|32px}}
|{{pximg|Dirt 10 (side texture) 4K2.png|32px}}
|{{pximg|Dirt 10 (bottom texture) 4K2.png|32px}}
|[[File:Dirt 10 4K2.png|64px|link=Special:FilePath/Dirt_10_4K2.png]]
|-
|11
|Dirt
|{{pximg|Dirt 11 (top texture) 4K2.png|32px}}
|{{pximg|Dirt 11 (side texture) 4K2.png|32px}}
|{{pximg|Dirt 11 (bottom texture) 4K2.png|32px}}
|[[File:Dirt 11 4K2.png|64px|link=Special:FilePath/Dirt_11_4K2.png]]
|-
|12
|Dirt
|{{pximg|Dirt 12 (top texture) 4K2.png|32px}}
|{{pximg|Dirt 12 (side texture) 4K2.png|32px}}
|{{pximg|Dirt 12 (bottom texture) 4K2.png|32px}}
|[[File:Dirt 12 4K2.png|64px|link=Special:FilePath/Dirt_12_4K2.png]]
|-
|13
|Dirt
|{{pximg|Dirt 13 (top texture) 4K2.png|32px}}
|{{pximg|Dirt 13 (side texture) 4K2.png|32px}}
|{{pximg|Dirt 13 (bottom texture) 4K2.png|32px}}
|[[File:Dirt 13 4K2.png|64px|link=Special:FilePath/Dirt_13_4K2.png]]
|-
|14
|Dirt
|{{pximg|Dirt 14 (top texture) 4K2.png|32px}}
|{{pximg|Dirt 14 (side texture) 4K2.png|32px}}
|{{pximg|Dirt 14 (bottom texture) 4K2.png|32px}}
|[[File:Dirt 14 4K2.png|64px|link=Special:FilePath/Dirt_14_4K2.png]]
|-
|15
|Dirt
|{{pximg|Dirt 15 (top texture) 4K2.png|32px}}
|{{pximg|Dirt 15 (side texture) 4K2.png|32px}}
|{{pximg|Dirt 15 (bottom texture) 4K2.png|32px}}
|[[File:Dirt 15 4K2.png|64px|link=Special:FilePath/Dirt_15_4K2.png]]
|}

==References==
{{reflist}}

==See also==
*''[[Minicraft]]'', another game created for a contest.
*''[[Legend of the Chambered|Prelude of the Chambered]]'', another game created for a contest.
*''[[Zombie Town]]'': An unreleased sequel to ''"Left 4k Dead"'', another game Notch created for the Java 4K contest.
*''[https://web.archive.org/web/20060424151658/http://www.mojang.com/notch/j4k2k6/miners4k/ Miners4k]'', another game Notch created for the Java 4K contest.

== Navigation ==
{{Navbox Minecraft|editions}}

[[Category:Editions]]

[[de:Minecraft 4k]]
[[es:Minecraft 4k]]
[[fr:Minecraft 4k]]
[[it:Minecraft 4k]]
[[ja:Minecraft 4k]]
[[lzh:礦藝四千]]
[[nl:Minecraft 4k]]
[[pl:Minecraft 4k]]
[[pt:Minecraft 4k]]
[[ru:Minecraft 4k]]
[[th:Minecraft 4k]]
[[uk:Minecraft 4k]]
[[zh:Minecraft 4k]]
