Modifier Name Cannot Be Empty
java.lang.IllegalArgumentException: Modifier name cannot be emptyThis 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 items in a chest to prevent them from being deleted!
If the item is in a container (such as a chest, dispenser, hopper, etc.):
- 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)
/clear @pinto 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
Escto 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"
/clear @pinto 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
level.datin the NBT editor
- Go into the
- Delete the
Inventoryitem (usually by selecting it and clicking the delete button at the top)
- Save the file (
Cmd+Son OS X)
- Close the NBT editor and reenter your world
How to avoid the crash
Instructions on correctly creating items with attributes. Requires knowledge of MCEdit. It is possible to edit the world's NBT directly, but it is far easier to do and much harder to mess up in MCEdit, so these are MCEdit instructions.
- First, you will need MCEdit and the AddAttribute filter
- Open your world in Minecraft and create a chest with the item (to which you want to add the attribute(s)) in it
- Save and quit the world
- Open MCEdit
- Click "Load World...", select the world you want to edit, and then click "Load"
- Select the chest
- Click on the "Filter" button in the hotbar and select the "Add Attribute Modifier" filter
- Choose the attribute settings you want, and be sure to put some number (pick something between 1 and 1000) in the "Label" field
- Click "Filter" at the bottom of the dialog box and wait for MCEdit to finish running the filter
- Save and Quit MCEdit