Mojira Archive
MC-267164

Giving yourself this potion can crash servers and lock players out of worlds

I was trying to adjust my potion command blocks to account for the potion syntax changes when I found this bug. Giving yourself this potion will effectively kick the holder out of the world and crash a server on first receiving it, and every time the player attempts to join the server. This seems to be caused by using pre 1.20.2 numeric potion ids with all other 1.20.2 syntax changes

Edit1: it seems that using any old syntax with the new one can cause the player to crash (ex: using "Id" with new potion syntax cause a potion holder side lockout but other server members were fine)

 

Fortunately I also found fixes to correct the crashing if a player manages to hold this item. Either get another player to place a repeating command block to clear the player's inventory, or delete player inventory data

Please do not test this in any place where you feel you could lose valuable saves.

The command is as follows:

/give @p lingering_potion{CustomPotionColor:3355443,display:{Name:'[

{"text":"Blindness Bomb","italic":false}

]',Lore:['[\{"text":"Disorient the swarm","italic":false}]']},custom_potion_effects:[\{id:15,duration:400},\{id:9,duration:200}]} 1

Invalid

IYamAGuy

2023-12-04, 11:50 PM

2023-12-05, 08:37 PM

2023-12-05, 08:37 PM

0

0

Unconfirmed

(Unassigned)

1.20.2

-