mojira.dev
MC-98311

Custom potions & tipped arrows don't have correct names with any custom effects.

When you give a player a potion or tipped arrow with custom effects, it doesn't give the name of the effect. So doing:

/give @p minecraft:tipped_arrow 1 0 {CustomPotionEffects:[{Id:15,Amplifier:0,Duration:60}]}

gives you a blindness potion, but it doesn't show Arrow of Blindness, it shows Arrow of splashing, which is really weird. Same occurs with a potion, instead of it being Potion of Blindness, it's Splash Water bottle; not sure if I'm using an incorrect datatag or what.

Comments 2

The CustomPotionEffects tag can be used to add multiple effect, and the game don't have to chose how to name the potion from this list since it can contains multiple different effect. Instead, the game name the arrow with the value of the Potion tag. In this case, there is no Potion tag, so the game use the default value "water". If you want don't want to be annoyed by the name, use the Potion tag with the value "empty" :

/give @p minecraft:tipped_arrow 1 0 {Potion:empty,CustomPotionEffects:[{Id:15,Amplifier:0,Duration:60}]}

Ok, although I can just add the display name tag, I'd just seen it weird with not combined effects. Well, I'll let the moderators decide what to do with my report.

Logical_Cyclops

(Unassigned)

Unconfirmed

Minecraft 1.9 Pre-Release 4

Retrieved