mojira.dev
MC-279698

provides_banner_pattern component does not use hash prefix

Per the Minecraft snapshot 25w04a changelog:

New provides_banner_patterns component

  • When present, this item can be placed in the pattern slot of a Loom

  • Format: hash-prefixed banner pattern tag

    • e.g. provides_banner_patterns='#minecraft:pattern_item/globe'

 With this format in mind, one would expect the following command to produce a potato that provides globe banner patterns to looms:

/give @s potato[minecraft:provides_banner_patterns="#minecraft:pattern_item/globe"]

However, it provides this error message instead:

Malformed 'minecraft:provides_banner_patterns' component: 'Not a valid resource location: #minecraft:pattern_item/globe Non [a-z0-9_.-] character in namespace of location: #minecraft:pattern_item/globe'

The following command works instead, mismatching the changelog:

/give @s potato[minecraft:provides_banner_patterns="minecraft:pattern_item/globe"]

Comments 2

I'd like to add that the currently functional command would be expected to only grant access to the pattern with the ID of that value. That's generally how tag-accepting values work.

haykam

gegy

Community Consensus

Platform

Important

Commands, Items

25w04a

25w05a

Retrieved