Summon Villager with:
/summon Villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"stone",Count:1b},sell:{id:"-",Count:1b}}]}}
Afterwards attempt to trade with him and it will crash the client. Works on server or on single player
Linked issues
Attachments
Comments 11
Negative, since it causes the local client to crash its also possible that something could be injected into the client. At minimal, its a bug that can cause any client to crash when connected to a server where this code has been inserted into a command block, and could be done so maliciously. This should be able to be corrected by sanitizing the input variables passed from commands.
Using incorrect syntax, improper variables, and other un-conforming methods to induce a software crash, is typically the first step to finding exploits.
What you have here, is still a bug. Improper formatting or not.
Strongly relates to MC-18495
Caused by invalid item id
/summon Villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"stone",Count:1b},sell:{id:"-",Count:1b}}]}}
Hm, the command in the description didn't crash for me.
Caused by invalid item id
Invalid item id in villager trading.....
Was already known to be the issue...
I just wanted to confirm that as the provided command contained much more than only an invalid item id.
For me as soon as I put a stone block in the buy field the game crashes
Oh, putting the trade in, hehe, didn't do that, I just opened the trading menu, guess I missed a part of the description. XD
Attached your command to the description, as it's more clear, and less long.
I'm just going to say, you're doing a lot wrong with your command:
Base is not a string, nor a float, its a dubble, use
numeral id's are no longer supported (most likely the cause of your crash), and potions no longer use damage values.
Fix your command, then see if the issue still occures.