Edit: Just to clarify, the texture of the arrow entity itself is not in question; this is about particle effects. "Color" references either the custom color on the tipped arrow item, or the particle effects that emanate from the arrow entity when fired. I've also edited the title and parts of the below text to clarify this.
Tipped arrows with custom colors won't display their custom effects when fired, even when the show_particles attribute is enabled. Instead, the tipped arrow will appear as a regular arrow (i.e. lacking particle effects.) If commands are used to obtain a tipped arrow without specifying a custom color, then the tipped arrow functions like any regular tipped arrow you can get from the creative inventory. That is, the arrow item will have the color that its potion effect corresponds to (e.g. swiftness arrows will be cyan colored,) and the arrow entity will likewise emanate its particle color when fired. But when a custom color is assigned, particle effects will no longer emanate from the arrow at all. It's as if when fired, the custom color attribute is completely erased. However, despite appearing as a regular arrow entity (i.e. no particles,) the arrow still gives its custom potion effect to the entity it hits, so it appears to be an issue with just the custom color attribute.
To replicate, use the following command, then simply use the given arrow: /give @p minecraft:tipped_arrow[potion_contents={custom_color:16252695,custom_effects:[
{id:"minecraft:absorption",amplifier:5,duration:12000,show_particles:1b}
]}]
You can verify that the arrow regains its particle effects when a custom color isn't specified by using the following:
/give @p minecraft:tipped_arrow[potion_contents={custom_effects:[
{id:"minecraft:absorption",amplifier:5,duration:12000,show_particles:1b}
]}]
Attachments
Comments 4
Hello, OP here. I'd just like to clarify that this isn't a duplicate of MC-273107. As I understand it, MC-273107 is about the texture of the arrow itself. To my knowledge, tipped arrow entities have never had a colored tip, only their item form has.
However, this post has nothing to do with the texture of the tipped arrow entity itself. What tipped arrow entities do have are particle effects that match their potion, and in the past, you could assign them custom-colored potion effects, in the same way that you do with the particle effects of a regular splash potion.
The particle effects of a tipped arrow have been customizable via commands in the past (in fact, I discovered this bug while reformatting my commands for 1.21,) and it seems that the custom_color and the show_particles tags are also specifically for that purpose. For that reason, I don't think this can be considered feature request; it's a minor bug that was created in the process of creating a new command syntax. There would be no reason to have a show_particles tag if particle effects weren't intended for tipped arrows.
I have now edited the title and body to clarify this. It honestly didn't cross my mind that "color" would be interpreted as referring to the texture of the arrow itself, but I see how it was misinterpreted after reading it back, so I do apologize for that.
Thanks for clarifying the issue better now. Though, because this report has already been resolved, it would probably be a better idea to create a new report of the issue instead of trying to un-resolve this one to reopen it. (disregard statement)
This is not a duplicate!
MC-273107 was about the color of the tipped arrow entity not having a colored tip (because it's only a normal arrow entity with potion data).
This bug report is about the lack of effect particles coming off of tipped arrows when a custom_color is set in the potion_contents component of the tipped_arrow item. This is a bug introduced by the new data components format for items and should be addressed, since there is now no way to set a custom particle color on arrows.