Skip to main content
Discovery icon for PaperMC Discord server

PaperMC

13,812 Online
55,239 Members
paper-dev4 people

modifying spawn egg entity data

Spawn egg entity data can be set via SpawnEggMeta with an EntitySnapshot, created dynamically using RegionAccessor#createEntity without spawning.

  • Custom entity data for spawn eggs can be applied using an EntitySnapshot stored on SpawnEggMeta
  • Entity snapshots can be constructed from an NBT string or converted from an existing entity instance
  • RegionAccessor#createEntity allows instantiating and editing an Entity object without spawning it into the world or loading chunks
  • World implements RegionAccessor, so createEntity can be called directly from any World instance
Summarized from recent messages, might be inaccurate

More conversations

paper-dev

adding team tag to EntitySnapshot

Talk, Play, &
Hang Out

Find your space to hang out, discuss the latest updates with the party chat, and see who's down to join your next match.
Get App