Modding Help Line

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

trajing

New Member
Jul 29, 2019
3,091
-14
1
So, I recently started to learn Java, and I'm having some difficulty. So, this is my help line for modding, and Java in general. I'm modding in 1.6.4, the latest (usable) recommended build. So, anyone who knows Java, or has a clue as to what problem in having, please reply. I'm using Eclipse. However, I don't have any problems yet, but I'd like an idea for my first mod. Preferably not too hard to code. Thanks for reading!
 

Narc

New Member
Jul 29, 2019
259
0
0
Start simple: make a block with inventory. Make sure the inventory saves when expected. Give it a crafting recipe. Make it consume power (of your favourite kind). Make it do something with the power. Make the GUIs update when they should.

This should keep you in trouble for the next week or two. Or more.
 
  • Like
Reactions: Pyure

Democretes

New Member
Jul 29, 2019
1,134
0
1
83-Image-2.jpg

Oracle: Java Tutorials. Literally covers all the basics. Good if you want to look up something real quick.
VSWE's YouTube Series:
Forging a Minecraft Mod - covers all the basics you need to know
Climbing the Interface Ladder - Guis and PacketHandlers
The Anatomy of a Minecraft Model - Models and Rendering

And on another note, I'd start with 1.7.2. Not having to work with id's is glorius. It's just a personal preference though.
 

Pyure

Not Totally Useless
Aug 14, 2013
8,334
7,191
383
Waterloo, Ontario
Start simple: make a block with inventory. Make sure the inventory saves when expected. Give it a crafting recipe. Make it consume power (of your favourite kind). Make it do something with the power. Make the GUIs update when they should.

This should keep you in trouble for the next week or two. Or more.
Excellent simple goals for a new modder.

@trajing I'd consider it a kindness if you posted your progress occasionally; I'm a professional programmer but I've never gotten into minecraft modding, and I'm curious how it goes :)[DOUBLEPOST=1404306186][/DOUBLEPOST]
And on another note, I'd start with 1.7.2. Not having to work with id's is glorius. It's just a personal preference though.

Not 1.7.10 ? (Watched bevo's news last night, which made reference to 1.7.10 mods.)
 

trajing

New Member
Jul 29, 2019
3,091
-14
1
I'm starting in 1.6 just because I'm making a pack, and I figure I can apply my knowledge to set up a custom mod for it. My first publicly released mod will be a 1.7 mod.
@Pyure sure! My only experience before this with coding was with Lua, which is dynamically typed.
 

Pyure

Not Totally Useless
Aug 14, 2013
8,334
7,191
383
Waterloo, Ontario
My only experience before this with coding was with Lua, which is dynamically typed.
Once you get a grip on braces and semicolons, you'll be fine. I'm looking at lua samples: the syntaxes are different, but not atrociously so :p (not like learning COBOL, ugh)
 

Niels Henriksen

New Member
Jul 29, 2019
502
0
1
However, I don't have any problems yet, but I'd like an idea for my first mod. Preferably not too hard to code. Thanks for reading!

If you know programming then its easy to make mods to Minecraft. The most importent is to be able to split the project in smaller parts. Every time see if you can split it up in even smaller parts.

I have just finished my first mod that makes armor and tools with emerald. The tools are enchanted if you have 30 levels and if you dont have the levels then the tools loose 80% of the durability. Its an easy mod to make and it took me a few days in the train and home.

But start slow and walk step by step.... dont expect to be able to make a mod like Twilight Forest from day one :)
 

trajing

New Member
Jul 29, 2019
3,091
-14
1
If you know programming then its easy to make mods to Minecraft. The most importent is to be able to split the project in smaller parts. Every time see if you can split it up in even smaller parts.

I have just finished my first mod that makes armor and tools with emerald. The tools are enchanted if you have 30 levels and if you dont have the levels then the tools loose 80% of the durability. Its an easy mod to make and it took me a few days in the train and home.

But start slow and walk step by step.... dont expect to be able to make a mod like Twilight Forest from day one :)
I'm not. The reason I'm asking for help is because I have a couple of (IMO) good ideas, but AFAIK it'll be hard to code.
Actually, I'm wondering how one codes GUIs. I really hated having to define the position and width and such of GUIs in Lua, and that was in a platform where Lua was given a couple of variables to make it OO. I haven't touched GUIs in CC yet.
So, are there any easy ways to make GUIs, or is there a plugin to make them easier, or what?
 

Niels Henriksen

New Member
Jul 29, 2019
502
0
1
You can see videos here (https://www.youtube.com/user/nealegaming/videos) and he is VERY good. You can also search on youtube for Pahimars videos.

I'm not. The reason I'm asking for help is because I have a couple of (IMO) good ideas, but AFAIK it'll be hard to code.
You could write your ideas down and share them so other maybe can make them.


Actually, I'm wondering how one codes GUIs.
Thats very easy. The GUI is just a picture where you define where the different slots are.

Most of the programming for mods is to define things/areas and wait for an event to happen.
 

Pyure

Not Totally Useless
Aug 14, 2013
8,334
7,191
383
Waterloo, Ontario
I don't have any problems yet, but I'd like an idea for my first mod. Preferably not too hard to code.

I just posted a thread on this. I have no idea how hard it is to iterate through blocks in a biome, so I can't speak to its difficulty overall.

I'd murder for a single block that on the front-end performed a "soil-sample". In reality (code), it (slowly) scans every block in its biome.

When complete, it displays the ore composition.

Sample testing complete:
0.5% iron
0.2% gold
0.1% silver
0.04% iridium


The GUI could literally be just lines of text; no actual interfacing. (imo a perfect first-gui)
 

Niels Henriksen

New Member
Jul 29, 2019
502
0
1
I just posted a thread on this. I have no idea how hard it is to iterate through blocks in a biome, so I can't speak to its difficulty overall.

I'd murder for a single block that on the front-end performed a "soil-sample". In reality (code), it (slowly) scans every block in its biome.

When complete, it displays the ore composition.

Sample testing complete:
0.5% iron
0.2% gold
0.1% silver
0.04% iridium


The GUI could literally be just lines of text; no actual interfacing. (imo a perfect first-gui)

Well... that would not be so difficult to make - and actually a good idea for a machine. Instead of a biome then it could use landmarkers like BC Qurray or fenceposts like EnderQurray. It could also use som RF so it will not be free to run. The block (machine) should also cost something to craft - mayby some subcomponents.
 
  • Like
Reactions: Pyure

trajing

New Member
Jul 29, 2019
3,091
-14
1
-snip-


You could write your ideas down and share them so other maybe can make them.


-snip2-
I wanted to make them myself because I don't trust anyone to give me the credit for the idea. Vazkii's album proved that even with a mod released, you can have that difficulty.
 

Pyure

Not Totally Useless
Aug 14, 2013
8,334
7,191
383
Waterloo, Ontario
Well... that would not be so difficult to make - and actually a good idea for a machine. Instead of a biome then it could use landmarkers like BC Qurray or fenceposts like EnderQurray. It could also use som RF so it will not be free to run. The block (machine) should also cost something to craft - mayby some subcomponents.

Landmarks are a better idea, you're right (tiny bit more abusable though). Biome-specific "might" be a bit easier to code though when getting started.
 

trajing

New Member
Jul 29, 2019
3,091
-14
1
Well... that would not be so difficult to make - and actually a good idea for a machine. Instead of a biome then it could use landmarkers like BC Qurray or fenceposts like EnderQurray. It could also use som RF so it will not be free to run. The block (machine) should also cost something to craft - mayby some subcomponents.
I don't like RF. So, it'll be free to run unless I can find a RoC API.
 

Niels Henriksen

New Member
Jul 29, 2019
502
0
1
Landmarks are a better idea, you're right (tiny bit more abusable though). Biome-specific "might" be a bit easier to code though when getting started.

I dont know it its possible to read biome-borders but with landmarks you know x and z in landscape (I have just started to mod this week)[DOUBLEPOST=1404309429][/DOUBLEPOST]
I don't like RF. So, it'll be free to run unless I can find a RoC API.

Well... the best will be to include different energy api's or to make it run on coal or charcoal....(or other fuel)
 

trajing

New Member
Jul 29, 2019
3,091
-14
1
I'll just use universalelectricity.
Just so anyone can use almost any power system.[DOUBLEPOST=1404309650][/DOUBLEPOST]I'm about to get on IRC. #Randomtrajing on irc.esper.net
 
  • Like
Reactions: Niels Henriksen

trajing

New Member
Jul 29, 2019
3,091
-14
1
So, I ran gradlew eclipse and it finished, but how do I use it as a workspace?