Jump to content

Questions about - Coremods(Still need help), Hooks(Done), and asm(done)


Recommended Posts

Posted

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 :D

 

Posted

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?

Posted

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 :)

If you guys dont get it.. then well ya.. try harder...

Posted

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?

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

Posted

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.

If you guys dont get it.. then well ya.. try harder...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.