r/MinecraftMod • u/StupidBustSharf • 6h ago
How to open and understand minecrafts code?
I really want to make a lil mod with fee features and mobs, but I know shit abt coding in general. So uhhh, how to open and actually understand which line fpr which mob and item?
( or reccomend me guide pretty pls)
9
Upvotes
3
u/Throwaway11271980 2h ago
just remember that vanilla code is messy so start with mixin refs if you want to keep your sanity
2
u/BadJ0k3s 6h ago
Check out Kaupenjoe's modding tutorials, they also go over things like checking the code
1
u/dark_blockhead 1h ago
> I really want to make a lil mod with
ok, so long as you have a mid-level knowledge of java you can learn and enj-
> but I know shit abt coding in general.
sorry, you can't make mods.
2
u/lool8421 2h ago
you might want to clone a repo, usually from forge, neoforge, fabric or quilt
then a project will come shipped with a code translation, although in newer versions you should be able to see original variable/class/method names since they deobfuscated the code
then once you're in intelliJ, press shift twice to open search bar, check the box to search files outside of the project and you can check any class you want
1
u/RandomDude9943 2m ago
https://mcsrc.dev if you want to just look at the src, or in intellij press ctrl + n to look up MC's classes