Using it

Performance and safety

  • Player toggles: /cosmetics toggle others hides everyone else's cosmetics for that player (entities are hidden, particles and effects are not sent). /cosmetics toggle reduced draws only a share of particles (performance.reduced-factor, 35% by default).
  • Distance: players farther than performance.view-distance (48 blocks) get no particles, and display entities use the same view range.
  • Caps: performance.max-entities (300) limits hats, wings, backpacks and pets together; a cosmetic that does not fit waits for room. performance.max-concurrent-effects (24) limits effects.
  • Update speed: one timer, performance.update-interval-ticks (2).
  • Own particles: performance.show-own-particles: false hides a player's own particles from themselves.
  • Threads: every database read and write runs on a background thread. Nothing blocks the main thread.
  • Cleanup: every spawned entity is tagged mccosmetics_entity, non-persistent, invulnerable and untargetable. They are removed on quit, death, world change, vanish, spectator, reload and disable. Leftovers are removed on start and when chunks load.