Skip to content

Adding a clarification to PDC on copying data. #476

@NinjaMandalorian

Description

@NinjaMandalorian

A quality of life improvement for developers, adding a note that specifies data is not automatically copied over for you would help with confusion.

Following the components update, the source ItemStack components (including PublicBukkitValues) are copied to the "components" section of a placed block entity, but the PDC is not copied to the block entity itself.

This can be deceiving, as with commands such as /data it appears the data is carried across to a TileState, when it is not.
image

This particular instance caused myself and others significant confusion, leading to the suggestion of creating a small InfoBox/WarningBox here clarifying that "Data is not copied across for you, and needs to be manually set the keys if 'moving' between PersistentDataHolders."

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions