Skip to content

Position and size

These keys place and size a cosmetic in the Head, Wear and Balloon lists, set the box an item balloon bumps with, and take the lead off a balloon.

position

The scale, offset and rotation of the cosmetic, for each of the lists head, wear and balloon. Any value left out, axis by axis, comes from the main config. Default: the main config's values.

# cosmetics/hats.yml
ufo-hat:
  item: itemsadder:alien_pack:ufo_hat
  slot: head
  position:
    head:
      scale: 1.2   # 0.0625 to 16
      offset:
        y: 0.1     # x and z come from the main config
  • position takes the sections head, wear and balloon. Any other key under it is warned about and passed over.
  • A scale outside 0.0625 to 16 is held to the nearest end. Each offset axis takes a number in blocks, as the main config's offsets do (lists).
  • scale and offset replace that list's model. or item. values in the main config, or balloon.mob.scale for a mob.
  • Under balloon, offset replaces balloon.offsets.position.
  • A model put on by command uses position when the command names the cosmetic, not when it names meg:<model>.
  • BoxStand stands use this position in place of the settings in BoxStand's own config.yml.

rotation

Turns an item cosmetic by degrees about the item's own axes, in a list's section under position. It turns only items, not models or mobs.

The alien balloon without rotation, its back to you, and with y: 180

# cosmetics/balloons.yml
alien-balloon:
  item: itemsadder:alien_pack:alien_balloon
  slot: balloon
  position:
    balloon:
      rotation:
        x: 0     # tips it forward and back
        y: 180   # turns it round
        z: 0     # tips it to one side
  • Each axis takes a number of degrees, and an axis left out does not turn. A rotation written as one number, with no x, y or z under it, is warned about and passed over.
  • It does not change the offset, motion, lead end or hitbox.
  • Positive degrees turn counter-clockwise, seen from the axis's positive end. The turns apply in the order x, y, z, as in Blockbench's display rotation.
  • The item turns about the point it is drawn at, so an item model whose display.head moves it off that point swings round.

hitbox

The box an item balloon bumps with, in pixels from 1 to 256: 16 is one block at scale 1. width is round: the same in every direction. Default: balloon.item.hitbox in the main config.

# cosmetics/balloons.yml
alien-balloon:
  item: itemsadder:alien_pack:alien_balloon
  slot: balloon
  hitbox:
    width: 24    # in pixels: 16 is one block
    height: 20
  • A number outside 1 to 256 is held to the nearest end. A side left out comes from balloon.item.hitbox. A hitbox written as one number, with no width or height under it, is warned about and passed over.
  • Only item balloons use it, while balloon.collide is on. Model and mob balloons use their own size.
  • The box's bottom is at the lead's end. It scales with balloon.item.scale, position.balloon.scale and a small stand.

hide-lead

With true, the balloon has no lead. It works on any balloon, including a model put on with the cosmetic's name. Default: false.

The UFO balloon with its lead, and with hide-lead: true

# cosmetics/balloons.yml
alien-balloon:
  item: itemsadder:alien_pack:alien_balloon
  slot: balloon
  hide-lead: true
  • If slot names slots and leaves out balloon, hide-lead is warned about and not used.