Skip to content

Adjust scale of body-worn items depending on the player's scale attribute #335

@YonioTheNacho

Description

@YonioTheNacho

Terms

  • I'm using the very latest version of CosmeticsCore and its dependencies.
  • I already searched on this Github page to check if the same issue was already reported.
  • I already searched on the plugin wiki to know if a solution is already known.
  • I already searched on the Discord server to know if anyone already provided a solution in the past for the issue.

Discord tag (optional)

Yonio

What happened?

When equipping custom cosmetics, they use the default, base scale attribute. However, if a player with a modified scale attribute equips it, the model will appear as smaller or bigger than the player.

Steps to reproduce the issue

  1. Change the player's scale attribute via /attribute %player% minecraft:scale base set 2 # You can use any other number apart from "1"
  2. Equip a custom body cosmetic
  3. The equipped cosmetic will look smaller and will appear lower in the back of the player (or the opposite if the scale attribute is smaller than 1)

Server version

This server is running Paper version 1.21.7-26-main@533d93c (2025-07-12T19:13:10Z) (Implementing API version 1.21.7-R0.1-SNAPSHOT)
You are 6 version(s) behind
Download the new version at: https://papermc.io/downloads/paper
Previous version: 1.21.4-232-12d8fe0 (MC: 1.21.4)

CosmeticsCore Version

CosmeticsCore version 1.3.8

ProtocolLib Version

ProtocolLib version 5.4.0-SNAPSHOT-753

FULL server log

Nothing to showcase; No errors are seen other than the command to equip said any body-worn items:

[14:59:41 INFO]: YonioTheNacho issued server command: /cosmeticscore:cosmetics YonioTheNacho add rpitems:redbackpack

Error (optional)

CosmeticsCore config.yml

lang: en
extract_default_assets: true
cosmetics:
  max_equippable:
    body: 3
    balloon: 2
  hide_during_combat:
    enabled: false
    combat_duration_ticks: 600
    only_pvp: true
  fix_invisible_nametag: false
  hide_in_vanish: true
  worlds:
  - '*'
wardrobe_room:
  camera:
    hide_actionbar_texts: true
    use_invisibility_potion: false
    rotation:
      manual:
        enabled: true
        step: 20
      auto:
        enabled: true
        direction: RIGHT
        step: 1.5
        pause_ticks_on_manual_rotation: 60
    zoom:
      enabled: true
      min: 2
    fade_effect: true
    location:
      world: flat
      x: 205
      y: -58.5
      z: 41
      yaw: 359.85
      pitch: 6.6
  mannequin:
    location:
      world: flat
      x: 204.5
      y: -60
      z: 45.5
      yaw: 180
      pitch: 0
  teleport_area:
    enter:
      world: flat
      pos1:
        x: 167
        y: -61
        z: 42
      pos2:
        x: 167
        y: -57
        z: 37
    exit_location:
      world: flat
      x: 164
      y: -60
      z: 40
      yaw: 98
      pitch: 10
  gui:
    cursor_default: fermented_spider_eye:9000001
    cursor_rotate: fermented_spider_eye:9000002
    cursor_pointer: fermented_spider_eye:9000003
    dyeing_pointer: fermented_spider_eye:9100003
    tutorial_gui: fermented_spider_eye:9100004
    tutorial_gui_checked: fermented_spider_eye:9100005
    slots:
      colors:
        not_owned: 195,147,57
        owned: 56,67,100
        wearing: 57,70,195
        wearing_preview: 195,120,57
        max_amount_reached_owned: 24, 29, 43
        max_amount_reached_not_owned: 64, 48, 17
      add_item_in_blank_slots:
        # This is useful only for some expert users that need to do some crazy stuff.
        # Do not enable it if you don't know what you are doing.
        enabled: false
        type: PAPER
        custom_model_data: 1337666
  commands:
    whitelist:
      enabled: true
      list:
      - msg
      - tell
      - r
      - reply
      - help
    blacklist:
      enabled: false
      list:
      - home
      - sethome
  allow-not-owned-preview: true
send_creative_hidden_hat_message: true
save:
  # Use only one at a time
  file:
    enabled: true
  mysql:
    enabled: false
    url: jdbc:mysql://my_url_database_69.com:3306/database_name
    username: username
    password: password
    table: cosmeticscore_saved
debug: false
prefix: '&5Cosmetics&r '

Problematic items yml configuration file (optional)

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions