Skip to content

ItemMeta for bucketed entities does not work #13322

@Malfrador

Description

@Malfrador

Expected behavior

Using the ItemMeta API to set Axolotl or TropicalFish meta does not work.

var bucket = new ItemStack(Material.TROPICAL_FISH_BUCKET);
TropicalFishBucketMeta meta = (TropicalFishBucketMeta) bucket.getItemMeta();

meta.setPattern(TropicalFish.Pattern.KOB);
meta.setBodyColor(DyeColor.RED);
meta.setPatternColor(DyeColor.WHITE);

bucket.setItemMeta(meta);

Should spawn a fish with those properties

Observed/Actual behavior

The fish spawns random instead.
The same using the DataComponent API works fine.

Steps/models to reproduce

See above

Plugin and Datapack List

Not relevant

Paper version

1.21.10-113

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.version: 1.21.10Game version 1.21.10

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions