Our great sponsors
-
MCP-Reborn
MCP-Reborn is an MCP (Mod Coder Pack) for Minecraft for making modded clients and researching its code. (1.13-1.20.1)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
DecompilerMC
This repository allows you to decompile any minecraft version that was published after 19w36a without any 3rd party mappings, you just need to execute the script or the executable (see releases)! Thanks mojang to have published proguard mappings
-
carpet-fixes
fabric-carpet extension mod which attempts to fix as many vanilla minecraft bugs as possible. Feel free to add as many fixes as you want! Currently 220+ Fixes!
I thought about maybe I can find it myself by checking the 1.18's source code. I tried to get this source code, but enigma(https://github.com/FabricMC/Enigma) is not supporting 1.18 (I'm not able to use enigma to get the source code on my computer). So I have no idea how Mojang patched Item Shadowing in 1.17, and how to overcome this problem.
I have no clue how item shadowing in 1.18 is possible but if you want to have a look at the source code you could try MCP Reborn which even allows you to modify the code and run it easily, though not all variables are deobfuscated. You can also use the official obfuscation mappings to manually decompile Minecraft (wiki article or use DecompilerMC to automate that task (with this method afaik nothing is obfuscated but there is no function to run the code. It would probably be quite easy to port the gradle tasks from MCP reborn or create your own but I’m not a Java dev so I’m not sure)
I have no clue how item shadowing in 1.18 is possible but if you want to have a look at the source code you could try MCP Reborn which even allows you to modify the code and run it easily, though not all variables are deobfuscated. You can also use the official obfuscation mappings to manually decompile Minecraft (wiki article or use DecompilerMC to automate that task (with this method afaik nothing is obfuscated but there is no function to run the code. It would probably be quite easy to port the gradle tasks from MCP reborn or create your own but I’m not a Java dev so I’m not sure)
Shadowing still works up to 1.17.1 and it was patched in 1.18 as far as I know, someone please correct me if I am wrong. There is a mod to unpatch it in the carpet extension Carpet-Fixes