This is a re-post of bug MC-85806 as I feel it was marked invalid inappropriately, and I have waited for over a week for an explanation/re-opening.
If I use the following command:
/give @p minecraft:tipped_arrow 1 0 {CustomPotionEffects:[{Id:8,Amplifier:0,Duration:3600}]}
I would expect to get an "Arrow of Leaping".
Instead I get an arrow Identical in every way to the arrow of leaping, (colour, effect, duration etc) but named "Arrow of Splashing"
I would even have expected them to be named according to effect if they had a different duration, amplifier or were of an effect currently absent from the creative menu, but that's less significant.
This bug was originally marked invalid because numerical ids are depreciated, however replacing "ID:8" with "ID:jump_boost", "ID:leaping", "ID:Jump_Boost" or "ID:Leaping" doesn't even give an arrow with the correct effect. If I have misunderstood something, please let me know the correct way to use this command.
EDIT: The bug does not exist for standard tipped arrows as I originally believed, as the proper command for them would be:
/give @p minecraft:tipped_arrow 1 0 {Potion:"minecraft:leaping"}
however it is still the case for tipped arrows of durations, amplifiers or types not available in the creative menu.
Linked issues
is duplicated by 1
Attachments
Comments 4
confirmed, this also seems to happen with lingering potions(lingering water bottle), splash potions(splash water bottle) and normal potions(water bottle)
@unknown He makes a custom potion effect arrow, this is supported, and previously also named the potion (since arrows weren't in yet) to the effect, this way you could obtain, for example, a wither potion
Alright, thanks for the command for obtaining the creative menu tipped arrows. I still think there should be a way to obtain the custom potion types with names, but if this is marked invalid I will understand now.
I guess it is harder to determine the name from the CustomPotionEffects
tag. The color is rather easy as it just "mixes" all the colors, but deciding which name it should use from a list of potions effects might be rather inconsistent.
We should maybe rather wait for the feature to give items names in the JSON format
The command you're looking for in this case is any of these 3:
/give @p minecraft:tipped_arrow 1 0 {Potion:"minecraft:leaping"},
/give @p minecraft:tipped_arrow 1 0 {Potion:"minecraft:long_leaping"},
or
/give @p minecraft:tipped_arrow 1 0 {Potion:"minecraft:strong_leaping"}.
This only works on potions that can be brewed in survival mode. Others you'll have to give a custom name.