To the Minecraft Modders

I have been a fan of MC for god knows how long, I tried to get into modding MC last year but couldn’t get into it due to my lack of Java knowledge.

I thought I would give it another bash, I understand things a hella lot better now but I still feel a little “lost” in the code.

For instance say I wanted to make a basic mod, that allowed you to absorb enemy health using a certain weapon, perhaps through a custom ore or item found.

I can’t help but feel that the lack of documentation for basic things like how to get the player instance, really throws me off.

Also, not all but some fields/methods have odd names, such as func_3467, which is ofc due to the way forge decompiles the code. Some are easy to understand, others not so much.

So how do you guys deal with this? Do you just have a look through the source and find the code you need? Then try and make it work? Or is there some Wiki I am not aware of? The forge wiki seems old and outdated :(.

these “func_3467” fields/methods aren’t really that important for basic mods. For items you would just need some new class called ItemExample.java and register it in Item.java with an ID you chose and that the game will use for the Item. then you can add some crafting recipes which is basically taking some existing recipe, duplicating it and change some values so you get your recipe. The difficult part would be to give the item the function to absorb health, but i guess there is a method in Item.java (from which the ItemExample.java extends) which handles hit(entity attacker, entity monster) or something like that where you could change the health values so it absorbs the health :slight_smile:

I had a small play with it a couple of years ago. Like you’ve mentioned, apart from reading some very basic tutorials, it was pretty much a case of looking through the source code and trying to follow where the methods take you (i.e. lots of searching). Quite a painstaking process.

So much cringe

Why? It’s just some people looking through and editing another person’s code. There’s nothing wrong with that…
Just because it’s a popular game doesn’t mean that you have to look down on the people that like modifying it, come on.

I was referring to SwordsMiner. First off, anyone who has ever touched Minecraft’s source code knows that making new items is easy, which is all his mod consists of. Second off, saying you are “certainly experienced” sounds like you are kind of full of yourself.

Super quote

Alright, you’re entitled to your opinion. No need to voice it if it’s negative though. Which I just did… waiiit…
I think we should both stop talking ::slight_smile:

I’ve dabbled in Minecraft modding too, trying to make a flying carpet vehicle… But back when I did it there still was a divide between single and multiplayer, and my flying boat test didn’t work online :frowning:

Now that I’ve exposed my silly Minecraft credentials… I’m tempted to say “wait for the Plugin API” because it will probably be a properly maintained API for modmaking that will drastically reduce the frustration of development… But seeing how much its been delayed, I won’t recommend it.

Guess it’s a matter of looking at particular mod loader APIs (like bukkit) and the many examples/tutorials around.

I’m personally fond of using the MCP (minecraft coder pack) to decompile the entire thing and study it (but because I actually enjoy looking at code), but they haven’t updated the pack in a while.

Seems like a lot of mods are on hold lately, word is the 1.7 update made it very hard to update mod compatibility :clue:

The old modding was a lot easier , modloader was just so much easier to use because everything was labelled. I gave it a go aswell but I was just put off because everyone uses forge, forge doesnt like normal functions.

Heh good to know I am not the only one that is a little “overwhelmed” with it, I think I just need to sit down for a while and make some very basic mods (not blocks/items that serve no purpose).

I even (don’t hate me) cracked open some of the popular mods such as buildcraft and MPS to see just how these people are dealing with things, I understand it all but then I get lost among some of it, mainly due to them all having API’s so mods can link together lol.

I had a look inside Balkons weapon mod, as I was interested in creating the weapons from Onimusha