Procedural animated texture generation/Gears

Minecraft Wiki article. Categories: Removed_features, Textures

📌 Mirrored from Minecraft Wiki

This article is reproduced from Procedural animated texture generation/Gears on the Minecraft Wiki. Mirrored from revision 3598407. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

BlockSprite rose.png: Sprite image for rose in Minecraft
This page describes content that has been removed and was only present in earlier versions of Java Edition.
 
Gears were removed in Java Edition Alpha v1.0.1.

Code which generates the frames of the gear texture can be found here.

The animation for gears was generated using two predefined image files - misc/gear.png for the rotating gear and misc/gearmiddle.png for the stationary center.

The animation is rendered as a 16×16 texture like most other blocks, with gear.png being downsampled. The gear rotates exactly 1/64 of a full rotation (5.625 degrees) every game tick - this means that although there would theoretically be many possible frames created by intermediate rotations, only 64 unique frames can ever appear in practice. The resulting gear takes 3.2 seconds to make a full rotation and has 18.75 RPM.

There are two different animations used for gears - one for clockwise rotation, and another for counterclockwise rotation, to allow for logical meshing. These are generated effectively identically, with the only difference being the direction of rotation; both start on the same frame, but cycle through them in the opposite direction.[1]

  1. ↑ "MC Texture Generator v1.2.0 - Gear support!" by NeRdTheNed – GitHub, August 2, 2021.

Sources