Modifier Name Cannot Be Empty
java.lang.IllegalArgumentException: Modifier name cannot be empty
This crash is caused by mousing over an item or holding it with an attribute that has no UUID.
How to fix this
Note: You will lose everything in your inventory; it is advisable to put items in a chest to prevent them from being deleted!
If the item is in a chest
- Make sure you are not currently selecting the first empty slot in the hotbar
- Break the chest
- Be sure not to select the item in the hotbar or mouse over it in the inventory (if you hold it in the hotbar accidentally, follow the second set of instructions)
- Type
/clear @p
into the chat - If it works, you are done. If the chat says you don’t have permission to use that command, keep following these instructions
- Press
Esc
to bring up the pause menu - Click “Open to LAN”
- Click the “Allow Cheats: OFF” button until it says “Allow Cheats: ON”
- Click “Start LAN World”
Type
/clear @p
into the chat again
If the item is in your inventory
- If your world is open, save and quit to the title screen
- You will need an NBT editor, such as NBTExplorer
- Open your minecraft folder
- Open the folder of the world the item is in
- Open level.dat in the NBT editor
- Go into the Data item, then Player
- Delete the Inventory item (usually by selecting it and clicking the delete button at the top)
- Save the file (Ctrl+S or Cmd+S on OS X)
- Close the NBT editor and reenter your world