Skip to content

Shared Tags

Moth edited this page Aug 9, 2026 · 1 revision

Shared Tags

Butterfly API provides shared tags for content that other mods may need to recognize.

The currently documented shared tags are for plush blocks and plush items.

Plush Block Tag

Registered plush blocks are automatically added to:

ButterflyApiTags.PLUSH_BLOCKS

Use this tag when code needs to check whether a block belongs to Butterfly API's plush system.

Plush Item Tag

Registered plush items are automatically added to:

ButterflyApiTags.PLUSH_ITEMS

Use this tag when code needs to recognize plush items.

Automatic Registration

Mods using the Butterfly Plush API do not need to manually add their registered plushes to these tags.

Butterfly automatically adds:

  • Plush blocks to PLUSH_BLOCKS
  • Plush items to PLUSH_ITEMS

when they are registered through the plush system.

Example Use

The exact way the tag is checked depends on whether you are working with a block state, item stack, or another Minecraft API type.

The important part is that Butterfly exposes the shared tag keys through:

ButterflyApiTags.PLUSH_BLOCKS
ButterflyApiTags.PLUSH_ITEMS

Related Pages

Clone this wiki locally