r/MinecraftMod • • 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

10 comments sorted by

3

u/Throwaway11271980 2h ago

just remember that vanilla code is messy so start with mixin refs if you want to keep your sanity

1

u/StupidBustSharf 1h ago

Dunno , still better than beta's code I assume.

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.

1

u/StupidBustSharf 1h ago edited 1h ago

Hahahaha ur so funny dude ,do what people ask instead pls or be a bit helpful :[

1

u/BarbsFPV 1h ago

Well, the point is you’re trying to do extremely advanced stuff without even knowing the first thing, like where to even start looking at how to code.

Coding takes time to learn. It’s not something you can fake while you’re doing something far beyond your current capabilities.

I suggest starting with w3schools to learn how to program in Java, and *then* start talking about making mods. You can’t run until you learn how to walk first.

0

u/StupidBustSharf 29m ago

Okay, tho im just imagining it more to be way simplier if I at least understand the code itself. And other stuff I can ask from prople, their tips and tutorials. All I need rn is to just understand, not to write or anything.

+I always thought its like math but complucated

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