M1kep Posted May 6, 2013 Posted May 6, 2013 So I have a couple questions, what is the difference between the different types of mods(Coremod, "Normal" mod) and what can you do with one type but not the other Next question is what exactly are hooks, and how are they used, and for what are the most useful? And finally, Asm if somebody could try to explain it or link me to some resource that could be informative. If you know of somewhere that already says some of these things just post that if you'd rather that then answer it yourself. Thank you Quote
Mazetar Posted May 7, 2013 Posted May 7, 2013 ASM from google: http://asm.ow2.org/ http://asm.ow2.org/doc/tutorial-asm-2.0.html For events, googling "events minecraft forge" gave the following useful link: http://www.minecraftforum.net/topic/1419836-forge-4x-events-howto/ Quote If you guys dont get it.. then well ya.. try harder...
M1kep Posted May 7, 2013 Author Posted May 7, 2013 Events? And sorry I wasn't aware that ASM was a java thing and not a forge thing, sorry Can you give any details about core mods? Quote
Mazetar Posted May 7, 2013 Posted May 7, 2013 events and hooks, things that let you hook into something that happens. An event is one way to accomplish this. Core mod's setup them self's from the base up, instead of using the @mod stuff, they do things a bit more by hand. They can access and use the ASM library among other things, but I'm sure other's can give you better answers than me, I haven't done much with core mods yet due to my afk life Quote If you guys dont get it.. then well ya.. try harder...
M1kep Posted May 7, 2013 Author Posted May 7, 2013 Ok thank you :DD Id expect that forge would have documentation about that but i cant seem to find it Quote
Mazetar Posted May 7, 2013 Posted May 7, 2013 http://files.minecraftforge.net/minecraftforge/minecraftforge-javadoc-1.5.2-7.8.0.684.zip The java docs, also you can check the source code? Quote If you guys dont get it.. then well ya.. try harder...
redria7 Posted May 7, 2013 Posted May 7, 2013 Since I was curious about core mods myself, my interpretation is that core mods alter the source code of minecraft itself. Normal mods just add to it using extra classes. So a normal mod would let you add a new block identical to dirt that emits light. A core mod would let you make dirt itself emit light (which I'm pretty sure normal mods cannot do... but I could be wrong). This is why forge is a core mod. It changes minecraft to allow new classes to be added that register with the existing code. Is that sort of what the difference is? Quote Read my thoughts on my summer mod work and tell me what you think! http://www.minecraftforge.net/forum/index.php/topic,8396.0.html I absolutely love her when she smiles
Mazetar Posted May 7, 2013 Posted May 7, 2013 No you can change base classes without being a core mod, nothing prevents you from doing it. However if you wish to be compitable with other mods, you must never modify the source files even if you are a core mod! What you( redria7) describe above is one of the things you can do using the ASM lib which you get access to as a coremod. But asm does NOT edit the source code/files off baseclasses. It's what makes it so usefull Asm changes the bytecode of the files at Runtime, doing all the changes inn RAM leaving the base classes unchanged. Quote If you guys dont get it.. then well ya.. try harder...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.