Placing an enchanted item with a non-existent ench ID will crash when placing it in the first slot of an anvil
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 by1
Created Issue:
Placing an enchanted item with a non-existent ench ID will crash when placing it in the first slot of an anvil
Steps to reproduce
- Type /give <itemID> 1 0
Unknown macro: {ench}(for the ID I used 45, but all other incompatible IDs work, for example, all numbers from 36 to 47)
- Place an anvil and place the item in the FIRST slot
Minecraft will crash
Steps to reproduce
- Type /give <itemID> 1 0 '
Unknown macro: {ench}' (for the ID I used 45, but all other incompatible IDs work, for example, all numbers from 36 to 47)
- Place an anvil and place the item in the FIRST slot
Minecraft will crash
Steps to reproduce
- Type /give <itemID> 1 0
'Unknown macro: {ench}
'(for the ID I used 45, but all other incompatible IDs work, for example, all numbers from 36 to 47)- Place an anvil and place the item in the FIRST slot
Minecraft will crashSteps to reproduce
- Type /give <itemID> 1 0 "
Unknown macro: {ench}" (for the ID I used 45, but all other incompatible IDs work, for example, all numbers from 36 to 47)
- Place an anvil and place the item in the FIRST slot
Minecraft will crash
Steps to reproduce
- Type /give <itemID> 1 0
"Unknown macro: {ench}
"(for the ID I used 45, but all other incompatible IDs work, for example, all numbers from 36 to 47)- Place an anvil and place the item in the FIRST slot
Minecraft will crashSteps to reproduce
- Type /give <itemID> 1 0
Unknown macro: {ench}(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
Steps to reproduce
- Type /give <itemID> 1 0
Unknown macro: {ench}(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 crashSteps to reproduce
- Type
/give <itemID> 1 0 {ench:[1:{id:_,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
Steps to reproduce
- Type
/give <itemID> 1 0 {ench:[1:{id:_,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 crashSteps 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
relates to
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 crashjava.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)
{code]
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 crashjava.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)
{code]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 crashjava.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)
is duplicated by
Relates to MC-32284


cannot confirm with/give @p 45 1 0 {ench:[1:{id:_,lvl:1}]}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.
Reopened.
If
MC-32880gets either fixed, then this ticket has to be re-checkt, orMC-32880gets resolved as Won't fix then this may be resolved as Won't fix too.Cannot reproduce.
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.
Separate ticket please.