Jump to content

Recommended Posts

Posted

Going to take the plunge and get into modding myself. Never done Java, but I have some coding experience in other similar languages. I want to develop for 1.15.2. But upon following an (admittedly outdated) 1.12.2 setup video for Eclipse, things aren't quite working right. Is there a link somebody could provide to a good setup guide for Eclipse and the Forge gradle script? I'm 95% sure the issue was with my gradle execution, as it's the one bit that I was 0% familiar with, and the videos mostly say "do this, do this" and never explain why, so no context to know where I went wrong. Please and thank you.

Posted

The setups from 1.12 -> 1.15 are really different. For 1.15, you can just import the build.gradle as an existing gradle project, or if you want to set it up from the commandline, the tasks are eclipse and genEclipseRuns

Posted

I ran the eclipse task, but it doesn't seem to like the Mod() bit in the Main class of my mod, it's not sure which package to import. Again, this may simply be a difference between 1.15.2 and 1.12.2, but I wouldn't know.

Posted
5 minutes ago, KaedenCraft said:

I ran the eclipse task, but it doesn't seem to like the Mod() bit in the Main class of my mod, it's not sure which package to import. Again, this may simply be a difference between 1.15.2 and 1.12.2, but I wouldn't know.

net.minecraftforge.fml.common.Mod;

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

If Eclipse is setup correctly for Forge, should it not import that automatically? The tutorial seemed to imply it would. I just want to make sure that the IDE is completely setup properly.

Posted

Nothing adds imports automatically, unless you're copying code from a place where it's already imported.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted (edited)

I apologize for being imprecise. In the tutorial video I watched, when the Main class didn't have the Mod package, it had a right click saying: "Do you want to import package net.minecraftforge.fml.common.Mod?" Mine never gave that option. It just asks to create a new package.

 

Here's what I see:

 

errors.png

 

Says it doesn't recognize the package "net".

Edited by KaedenCraft
Posted

Well the @Mod annotation changed and no longer takes all those parameters.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
44 minutes ago, KaedenCraft said:

How did you guys figure out the parameters for Mod changed?

We use our IDE and read the source code regarding the Mod annotation.

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Posted
33 minutes ago, KaedenCraft said:

As somebody brand new to [...] Java generally,


Don't use modding to learn Java.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
3 hours ago, KaedenCraft said:

Okay, so back to my original question: Is there any link anywhere to something more up-to-date? Text? Video? How did you guys figure out the parameters for Mod changed?

There are videos for 1.15.2 setup. I've tried it a few days with no prior Java experience and things seem working fine. Just go on youtube and search for "minecraft modding tutorial 1.15", you can't miss em. Knowing Eclipse from working with it some ~10 years ago I elected to try IntelliJ and I like it, for now. 

 

1 hour ago, Draco18s said:


Don't use modding to learn Java.

Oof ? Maybe development as a whole, but Java as a language? Why not?

 

1 hour ago, KaedenCraft said:

As somebody brand new to Forge specifically and Java generally, could you expand on that a little bit?

The videos essentially get you through the Getting Started in the documentation. You can also get more information in the README.txt indluded in the mdk.

Such as :

Quote

If you prefer to use IntelliJ:
1. Open IDEA, and import project.
2. Select your build.gradle file and have it import.
3. Run the following command: "gradlew genIntellijRuns" (./gradlew genIntellijRuns if you are on Mac/Linux)
4. Refresh the Gradle Project in IDEA if required.

Admittedly, following those instructions were more natural to me than following the videos.

Posted
3 hours ago, Drumline18 said:

Oof ? Maybe development as a whole, but Java as a language? Why not?

Forge is a rather complicated API and will be unnecessarily confusing for people who are not familiar with Java. Learning Java through making a mod might be slower than the combined time of learning Java properly + making a mod.

 

5 hours ago, KaedenCraft said:

As somebody brand new to Forge specifically and Java generally, could you expand on that a little bit?

On my setup, I can view the source code of a class by pressing cmd and left click on the class name. Hotkeys like this varies depending on your setup, so it is recommended to get familiar with your specific IDE (i.e. read its manual).

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Posted
16 hours ago, KaedenCraft said:

Going to take the plunge and get into modding myself. Never done Java, but I have some coding experience in other similar languages. I want to develop for 1.15.2. But upon following an (admittedly outdated) 1.12.2 setup video for Eclipse, things aren't quite working right. Is there a link somebody could provide to a good setup guide for Eclipse and the Forge gradle script? I'm 95% sure the issue was with my gradle execution, as it's the one bit that I was 0% familiar with, and the videos mostly say "do this, do this" and never explain why, so no context to know where I went wrong. Please and thank you.

https://cadiboo.github.io/tutorials/1.15.1/forge/1.0-gradle-configuration/

https://cadiboo.github.io/tutorials/1.15.1/forge/1.1-importing-project/

New in Modding? == Still learning!

Posted

THANK YOU to those above who actually read my opening post and helped guide me in the right direction. Those who didn't read it, didn't post anything helpful, and basically said "git gud," you all must really be bored during the lockdown.

 

I will check out that documentation on cadiboo. Even a cursory glance at it shows it will likely be very helpful.

  • Like 1

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hey, sorry I haven't said anything in a while. I was banned on here for sending you straight up crash logs and they banned me for spam... but I learned that these forums are for forge only and I was working with neoforge... but thank you for all the help.
    • la verdad nose que hago
    • Ok i check and this is real axioM, BUT i have seen strange thing when mods less then 100 is working great but when its more then 100, i got crash   i realy need this mod can i some how fix it? or only delete axiom
    • It is an issue with the mod Axiom
    • I am in 1.20.1, and I have about 50 mods, I'd say. But for some reason, the search bar broke at some point. It's a real pain to search for a certain object.. Mods that I have(I had to write ALL OF THESE OUT arhg): Epic Knights. AI-Improvements, Alexscaves, alexsmobs, AmbientSounds, Aquamirae, Architectury, Betterfpsdist, BiomesOPlenty, Bookshelf, Born In Chaos, Bountiful Critters, CarbonConfig, Citadel, Cloth config, Clumps, Corgilib, Creative Core, Creeperoverhaul, crittersandcompanions, CullLessLeaves, Cupboard, Duckling, Embeddium, Enchantment Descriptions, Enderman Overhaul, Entity Model Features, Entity Texture Features, Entity Culling, Exotic Birds, Extra Sounds, Falling Leaves, Farmers Delight, Fast Leaf Decay, Fastload, Ferritecore, FpsReducer2, Framework Forge, Gamma Creatures Mod, Geckolib, Geophilic, Ghosts, Goblin Traders, Gpumemleakfix, Guardvillagers, Ichunutil, ImmediatelyFast Forge, Immersive Paintings, Incendium, Konkrete Forge, Let Sleeping Dogs Lie, Make Bubbles Pop, MCW Bridges, MCW doors, MCW Fences, MCW lights, MCW paths, MCW trapdoors, Medieval Paintings, More Creative Tabs Combo, Nether's Overhaul, Nyfss Spiders Forge, Obscure Api, oculus MC, Oh The Biomes We've Gone, Oh The Trees You'll Grow, Physics Mod, Prehistoric Park, Quark Delight, Quark, Rainbow Reef, Refurbished Furniture Forge, Regrowth, Repurposed Structures, Resourcefulconfig, Ribbits, Rubidium, Saturn mc, Skin Layers 3d Forge, Smoothchunk, Starlight, Structory, TerraBlender, Terralith, Visuality, Water Erosion, Xaeros Minimap, Xaeros World Map, YungsApi, YungsBetter Desert Temples, Yungs Better Dungeons, Yungs Jungle Templates, Yungs Better Mineshafts, Yungs Better Nether Fortresses, Yungs Better Strongholds, Yungs Better Witch Huts, Yungs Bridges, Yungs Extras, Zeta.   Why isn't my search bar working!!!!😭
  • Topics

×
×
  • Create New...

Important Information

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