Custom potions with ambient effects are not ambient when drunk.
LadyCailinBot opened this issue ยท 2 comments
CMDHELPER-2841 - Reported by ryan_the_leach
pgive_item(@player,373,1,array(display: cc(@player,''s Starter Potion'), main: 10, potions: array(array(ambient: true, id: 22, seconds: 6015, strength: 1),array(ambient: true, id: 23, seconds: 6015, strength: 0),array(ambient: true, id: 11, seconds: 60*15, strength: 2)), lore: array(cc(color(GREY),@player,''s Starter Potion (15m)'),cc(color(GREEN),'Plant your bed before'),cc(color(GREEN),'it is too late'),cc(color(GREEN),'/randomtp for quick wilderness access'))))
gives
{{ambient: false, id: 23, seconds: 768, strength: 0}, {ambient: false, id: 22, seconds: 768, strength: 1}, {ambient: false, id: 11, seconds: 768, strength: 2}}
when drunk.
Comment by jb_aero
Bukkit was never fully updated to support ambient potions. I made a PR to make it so you could APPLY ambient effects, but I had never checked potion items. I'll take a look at it, but most likely it needs to be fixed in Bukkit.