Jump to content

Counter on Minecraft's website can't count


Dentcat

Recommended Posts

I'd much rather like to see blogs of progress on that much spoken mod API...

Well, we already have part of the API already...

Mojang have been moving to create a plugin API for minecraft, just in small steps. Here are some questions mojang may have asked, and answers to them.

  • What if people just want to change a sound or texture, or set custom text. Should they have to code an entire plugin just to replace a sound? These files are replaced as a whole. So why not make it easy to replace these "resource" files in minecraft?
    Answer: The minecraft textures have been split up into individual files, allowing somebody to easily replace just one section and another person to replace another section.
    Answer: The idea behind texture packs has been expanded to include things like sounds and strings. However people have shown that they want more than one of these installed, so allow layering of resource packs (so you have a list of resource packs, like you have a list of mods)
  • But what if the modifications that people want to do are fairly large. They want to load different classes and they want to insert function calls into the code. They also might want to have their own custom libraries... heck, we want to be able to use some different libraries
    Answer: New launcher that uses the "fancy class loading" (called ASM) that forge uses to load itself (and powers coremods, allowing several modifications to the same function of the same class to not interfere with each other). It allows custom libraries to be specified and even allows the launcher to launch a custom class first, before it launches minecraft.
  • Modifications still have to register blocks and items. How do we make it easy for plugins (when we actually specify what a plugin looks like) to not step on each other's toes.
    Answer: Hide the block id at a lower level, so plugins don't need to see it. It will only be seen when dealing with world saves, where it would be wasteful to store it as a string on the disk.
  • The code is still ugly though. I can't make an API on top of this!
    Answer: Rewrite the code to make it easier for an API to be introduced.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...