Skip to content

ItemDisplay doesn't send metadata #1379

@SinanAkkoyun

Description

@SinanAkkoyun

[X] The FAQ doesn't contain a resolution to my issue

Versions

  • minecraft-protocol: 1.54.0
  • server: vanilla/spigot/paper 1.21
  • node: 22

Detailed description of a problem

When logging bot._client.on('entity_metadata' in a mineflayer bot, it outputs metadata for text- and block displays, but not for item displays.

Current code

// DEBUG
  bot._client.on('entity_metadata', (packet) => {
    console.log(`[entity_metadata] Entity: ${packet.entityId}, Metadata:`, packet.metadata || 'MISSING')
  })

// or also print out metadata of these, all empty
Object.values(bot.entities).filter(e => e.name === 'item_display')

Expected behavior

The protocol should correctly read item_display entities too

Additional context

Thanks in advance for help

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions