cucumber mod banner
cucumber mod icon

cucumber mod

Adds a cucumber that sits between the player character's legs as a visual accessory. Uses the character's skin color.

10
fabricBoth1.21.1mod

cucumber mod accessory notes

  • Adds a cucumber accessory that sits between the player's legs whenever the player model is rendered. It gently sways with walking animations and stays aligned to the torso so it shows up from both first- and third-person perspectives.
  • The accessory uses the player's own skin tone: the client loads the player's skin texture (or falls back to the built-in defaults) and samples a patch of pixels to determine the tint applied to the cucumber model.
  • Rendering is implemented via a Fabric feature renderer (CucumberFeatureRenderer) that is attached to the vanilla player renderer during client initialization. The model itself is a lightweight cuboid defined in code and shaded through a plain white texture so tinting works reliably.
  • Color sampling happens asynchronously. While a tone is still being computed, the accessory defaults to the classic Steve/Alex palette, and it updates automatically once sampling finishes. Network errors simply keep the fallback tone.

Limitations & future ideas

  • Skin sampling requires downloading the player's skin texture if it is hosted externally, so the first tint update may lag slightly on the first encounter with a new skin.
  • The accessory is purely cosmetic and client-side; multiplayer servers will not be aware of it, but each client needs the mod installed to see it.
  • Further improvements could add configuration for size/offsets or allow players to pick a fixed color if they prefer.