User:Umucraft/How to restore item and block numerical ids (in 1.12.2) - minecraft.fandom.com
Treść tej podstrony pochodzi z artykułu „User:Umucraft/How to restore item and block numerical ids (in 1.12.2)” w domenie minecraft.fandom.com na licencji CC BY-NC-SA 3.0
This is a tutorial how to restore numerical ids for command /give
If you have a problem about this tutorial (such as bugs, crashes etc.), you can write in my user talk page.
Firstly, download MCP and unpack it.
After that, run decompile.bat. Wait it to finish.
After decompliation, find the class net.minecraft.command.CommandBase in src folder
Find the getItemByText.
Replace Item item = Item.REGISTRY.getObject(resourcelocation); with Item item = getByNameOrId(id);
!! Important: Do not forget to run recompile.bat to save your changes in the code !!
After recompliation, run startclient.bat in order to run the modified client. Try this command:
/give @p 123
It should give you a redstone lamp item unless you made a mistake.