Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (527)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (593)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  To the Minecraft Modders  (Read 1057 times)
0 Members and 1 Guest are viewing this topic.
Offline Gibbo3771
« Posted 2014-05-11 10:09:50 »

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 Sad.

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Offline Seiya02

JGO Coder


Medals: 3
Projects: 4
Exp: 5 years


No Text Here :x


« Reply #1 - Posted 2014-05-11 10:47:33 »

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 Smiley
Offline nerb
« Reply #2 - Posted 2014-05-11 10:47:49 »

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.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline SwordsMiner

JGO Coder


Medals: 7
Projects: 2
Exp: 1 year


The one and only.


« Reply #3 - Posted 2014-05-11 13:10:01 »

If you need help, i'm certainly experienced.  Pointing

http://www.planetminecraft.com/mod/more-minecraft-armor-tools-food-blocks-everything

If I made you laugh, helped you at all, or did something cool, I only ask that you smash that appreciate button with your nose.
Offline opiop65

JGO Kernel


Medals: 159
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #4 - Posted 2014-05-11 13:21:46 »

*So much cringe*

Offline Slyth2727
« Reply #5 - Posted 2014-05-11 15:18:22 »

*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.

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Offline opiop65

JGO Kernel


Medals: 159
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #6 - Posted 2014-05-11 15:22:15 »

*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.

Offline Slyth2727
« Reply #7 - Posted 2014-05-11 15:30:11 »

*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  Roll Eyes

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Offline Oskuro

JGO Knight


Medals: 40
Exp: 6 years


Coding in Style


« Reply #8 - Posted 2014-05-23 09:36:07 »

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  Sad

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  Clueless

Offline SwordsMiner

JGO Coder


Medals: 7
Projects: 2
Exp: 1 year


The one and only.


« Reply #9 - Posted 2014-05-26 14:15:54 »

*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.

Its an old thread, but I have to.

http://www.planetminecraft.com/mod/the-extractinator-mod/

Cringe now bro, i got me hella complex wierd func_blah proxies.

If I made you laugh, helped you at all, or did something cool, I only ask that you smash that appreciate button with your nose.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline lcass
« Reply #10 - Posted 2014-05-27 18:11:17 »

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.
Offline Gibbo3771
« Reply #11 - Posted 2014-05-28 10:11:07 »

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

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

PocketCrafter7 (12 views)
2014-11-28 16:25:35

PocketCrafter7 (7 views)
2014-11-28 16:25:09

PocketCrafter7 (8 views)
2014-11-28 16:24:29

toopeicgaming1999 (74 views)
2014-11-26 15:22:04

toopeicgaming1999 (64 views)
2014-11-26 15:20:36

toopeicgaming1999 (15 views)
2014-11-26 15:20:08

SHC (29 views)
2014-11-25 12:00:59

SHC (27 views)
2014-11-25 11:53:45

Norakomi (32 views)
2014-11-25 11:26:43

Gibbo3771 (28 views)
2014-11-24 19:59:16
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!