Steps to reproduce
Type
/give <itemID> 1 0 {ench:[1:{id:45,lvl:1}]}
(for the ID I used 45, but all other incompatible IDs work, for example, all numbers from 36 to 47) to give yourself an item with a non-existent enchantment ID
Place an anvil and place the item in the FIRST slot
Minecraft will crash
java.lang.NullPointerException: Updating screen events
at yl.e(SourceFile:276)
at yl.a(SourceFile:425)
at bdo.g(SourceFile:115)
at bdo.a(SourceFile:160)
at yj.b(SourceFile:83)
at yj.a(SourceFile:377)
at yl.a(SourceFile:119)
at ym.e(SourceFile:40)
at py.a(SourceFile:68)
at zp.c(SourceFile:77)
at yj.a(SourceFile:464)
at yl.b(SourceFile:394)
at yj.a(SourceFile:193)
at bjz.a(SourceFile:308)
at bdn.a(SourceFile:490)
at bdn.a(SourceFile:318)
at bdo.a(SourceFile:121)
at bcl.d(SourceFile:232)
at bcl.k(SourceFile:211)
at azi.p(SourceFile:1308)
at azi.ah(SourceFile:760)
at azi.f(SourceFile:711)
at net.minecraft.client.main.Main.main(SourceFile:152)
Linked issues
is duplicated by 1
relates to 2
Attachments
Comments 9
you didn't do the right thing, put item ID = anything you want, and enchantment id at any number between 36 and 47
Confirmed with
/give @p 45 1 0 {ench:[1:{id:45,lvl:1}]}
Please put exact examples in the descripton. Writing twice "ID" is quite error prone.
This can only be caused by using the /give command or an external editor. If you want to play with those, know what you're doing!
what do you mean know what Im doing, it crashed, its a genuine bug which will most likely be encountered in future, you can't really say that about crash bugs, and now that this uses /give, NBT via commands will be becoming a much more used part of the game.
Had this issue on my server, have some items with custom ench ids, when you place it in an anvil its okay, but if you try to add an enchanted book to it your client crashes. I've had to use /enchant to do a lot of players enchanting. Running vanilla 1.11.2.
cannot confirm with