Clock

From Minecraft Wiki
Jump to navigation Jump to search
This article is about the item. For the redstone circuit, see Redstone circuits/Clock.
Clock
Clock.gif: Infobox image for Clock the item in Minecraft
Invicon Clock.png: Inventory sprite for Clock in Minecraft as shown in-game with description: Clock
Rarity tier

Common

Renewable

Yes

Stackable

Yes (64)

Clocks are time-telling devices that display the current in-game position of the sun and the moon. Clocks only function properly in the Overworld.

Obtaining[edit | edit source]

Generated loot[edit | edit source]

Item Structure Container Quantity Chance
Java Edition and Bedrock Edition
ItemSprite clock.png: Sprite image for clock in Minecraft linking to ClockClock EnvSprite ruined-portal.png: Sprite image for ruined-portal in Minecraft linking to Ruined PortalRuined Portal Chest 1 7.3%
EnvSprite shipwreck.png: Sprite image for shipwreck in Minecraft linking to ShipwreckShipwreck Map chest 1 7.7%

Crafting[edit | edit source]

Ingredients Crafting recipe
Gold Ingot +
Redstone Dust
Invicon Gold Ingot.png: Inventory sprite for Gold Ingot in Minecraft as shown in-game linking to Gold Ingot with description: Gold IngotInvicon Gold Ingot.png: Inventory sprite for Gold Ingot in Minecraft as shown in-game linking to Gold Ingot with description: Gold IngotInvicon Redstone Dust.png: Inventory sprite for Redstone Dust in Minecraft as shown in-game linking to Redstone Dust with description: Redstone DustInvicon Gold Ingot.png: Inventory sprite for Gold Ingot in Minecraft as shown in-game linking to Gold Ingot with description: Gold IngotInvicon Gold Ingot.png: Inventory sprite for Gold Ingot in Minecraft as shown in-game linking to Gold Ingot with description: Gold Ingot
Invicon Clock.png: Inventory sprite for Clock in Minecraft as shown in-game with description: Clock

Trading[edit | edit source]

VillagerProbabilityVillager wantsPlayer receives
JEBE
Expert Librarian50%33%5 × Invicon Emerald.png: Sprite image for Emerald in Minecraft linking to EmeraldEmeraldInvicon Clock.png: Sprite image for Clock in Minecraft linking to ClockClock

Usage[edit | edit source]

Clock animation

The clock dial consists of two halves, a day side and a night side. The dial spins clockwise slowly to indicate the time of day, corresponding to the sun or moon's actual position in the sky. When the time of day changes suddenly, such as after sleeping or when /time is used, the clock dial spins rapidly to catch up. The player is able to sleep a few seconds after the clock shows exactly dusk.

The dial always shows the current in-game time when in the Overworld, regardless of where it appears. This includes a player's hand, an inventory slot, a crafting grid, an item frame, or even as a dropped item. For a clock to be mounted on a wall, an item frame is required.

Because there is no day/night cycle in the Nether or the End, clocks do not work properly in these dimensions. Instead, the dial rotates rapidly and randomly. Although clocks do not function in these dimensions, the actual daylight cycle does continue.

In Java Edition, a clock can be viewed under the item statistics page as long as one obtained a clock at some point.

Piglins[edit | edit source]

EntitySprite piglin.png: Sprite image for piglin in Minecraft linking to PiglinPiglins are attracted to clocks and run toward any clock on the ground, and inspect it for 6 to 8 seconds before putting it in their inventory.

Data values[edit | edit source]

ID[edit | edit source]

NameIdentifierFormTranslation key
ItemSprite clock.png: Sprite image for clock in Minecraft ClockclockItemitem.minecraft.clock

Bedrock Edition:

NameIdentifierNumeric ID FormTranslation key
ItemSprite clock.png: Sprite image for clock in Minecraft Clockclock393Itemitem.clock.name

Achievements[edit | edit source]

Icon Achievement In-game description Actual requirements (if different) Gamerscore earned Trophy type (PS4)
PS4 Other
AchievementSprite oooh-shiny.png: Sprite image for oooh-shiny in Minecraft linking to Achievement#Oooh, shiny!NewAchievementSprite oooh-shiny.png: Sprite image for oooh-shiny in Minecraft linking to Achievement#Oooh, shiny!Oooh, shiny!Distract a Piglin using goldGive a piglin a gold item while it is aggressive toward the player.30GSilver

Advancements[edit | edit source]

IconAdvancementIn-game descriptionActual requirements (if different)
Oh ShinyDistract Piglins with gold The player must not be wearing any gold armor. Other gold-related items do not distract the piglin and do not trigger this advancement.

Video[edit | edit source]

Note: This video doesn't state that clocks can be found in shipwrecks or ruined portals because the video was released in an earlier version.

History[edit | edit source]

Java Edition Alpha
v1.2.0? Added clocks.
They have 230 visually distinct frames due to how the texture is generated – see the section below.
Java Edition
1.3.112w21aLibrarian villagers now sell clocks for 10-11 emeralds, making them renewable.
1.513w02a Clocks now use the new animation feature included in texture packs. As a result, they are considerably less precise, having only 64 frames.
1.814w02aLibrarian villagers now sell clocks for 10-12 emeralds.
1.915w31aClocks are now broken up into individual textures, instead of having every individual frame on one vertical strip like with animated textures.
1.1317w47aPrior to The Flattening, this item's numeral ID was 347.
18w14aClocks can now be found in shipwreck map rooms.
1.1620w09aClocks can now be used to distract piglins.[1]
20w16aClocks now generate in ruined portal chests.
20w19aClocks no longer work in the recipe book.[2]
20w22aClocks no longer work in the villager trading GUI.[3]
1.1720w48a The texture of clocks has been changed to match the new gold ingot texture from the texture update.
Pocket Edition Alpha
v0.2.0 Added clocks.
Clocks currently have no function or legitimate method of obtaining them.
v0.8.0build 1Clocks are now functional and craftable. They have been added into the Creative inventory.
The texture of clocks has been changed. They use a predefined texture file with 64 different frames.
Pocket Edition
1.0.4alpha 1.0.4.0Librarian villagers now sell clocks for 10-12 emeralds.
Bedrock Edition
1.4.0beta 1.2.20.1Clocks can now be found inside map room chests in shipwrecks.
1.11.0beta 1.11.0.4Trading has been changed, librarian villagers now have 13 chance to sell a clock for 4 emeralds as part of their trades.
1.16.0beta 1.16.0.57Clocks now generate in ruined portal chests.
1.17.0beta 1.17.0.54 The texture of clocks has been changed to match the new gold ingot texture from the texture update.
Legacy Console Edition
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU1CU11.001.001.00Patch 11.0.1 Added clocks.
Like in old versions of Java Edition, they use a dynamically generated texture with 230 visually distinct frames.
TU12 Alongside the addition of texture packs, clocks have been changed to use pre-rendered sprites. As a result, they are considerably less precise, having only 64 frames.
TU69 1.761.761.76Patch 38 Clocks can now be found in shipwreck map rooms.
New Nintendo 3DS Edition
0.1.0 Added clocks.

Texture generation prior to Java Edition 13w02a and Xbox 360 Edition TU12[edit | edit source]

To generate its appearances, the clock combined 2 textures, one being the actual clock, and the other being the dial.

The logic solely for mixing the two (as there is additional logic for moving the dial in a wobbly fashion that isn't pertinent here) is as follows:

The procedural and pre-rendered clocks compared. The difference in precision is far more obvious in-game. If the modern clock sprite were to be procedurally generated it would have only 218 unique frames, as the window to the dial is slightly different.
# Assume RGBA values are handled as 0.0 to 1.0 float values
def setup_clock_sprite (item: Image, dial: Image, dial_angle: float, output: Image):
	rx = sin(-dial_angle)
	ry = cos(-dial_angle)
	for y in range(item.height):
		for x in range(item.width):
			pix = item.get_pixel(x, y)
			if pix.r == pix.b and pix.g == 0 and pix.b > 0:
				u: float = -(x / (item.width  - 1) - 0.5)
				v: float =   y / (item.height - 1) - 0.5
				dial_pix = dial.get_pixel(
					int(((u * ry + v * rx + 0.5) * dial.width)) % dial.width,
					int(((v * ry - u * rx + 0.5) * dial.height)) % dial.height
				)
				dial_pix.rgb *= pix.r
				pix = dial_pix
			output.set_pixel(x, y, pix)

This results in the item and dial sprites being mixed by fuchsia areas of the clock sprite, as well as being shaded by them (contrary to the popular belief that they were mixed solely on the two shades found on the vanilla sprite). This allowed for the clock to be animated precisely, having 230 visually distinct frames, in an era where block and item sprites couldn't be animated individually without mods. The pre-rendered animated approach, used in 1.5 onward, is far less precise, with only 64 different frames.

A valid albeit silly clock sprite, showing how the fuchsia areas are used to mix the sprite and dial; Note how the dial gets flipped horizontally.

Due to an oversight with how assets were loaded however, the item sprite for clocks couldn't be overridden by texture packs (as they are set to always load from the vanilla gui/items.png atlas, stored in minecraft.jar, rather than the one of the currently active texture pack.


Issues[edit | edit source]

Issues relating to "Clock" are maintained on the bug tracker. Issues should be reported and viewed there.

Trivia[edit | edit source]

  • In Java Edition, the default resource pack for the clock contains 64 individual frames, each frame lasting about 18.75 seconds in real time (375 ticks) (1350 seconds (22 minutes, 30 seconds) in Minecraft time).

Gallery[edit | edit source]

Screenshots[edit | edit source]

References[edit | edit source]

Navigation[edit | edit source]