Jump to content

Setting up proper development enviroment for switching forge versions


aw_wolfe

Recommended Posts

First, I'm new to mc modding and working with eclipse (main experience with C++, c# and Unity 3d)...so I apologize ahead of time if my issues are truly stupid. Further, I may well be over my head, but doesn't seem like what I'm trying to do should be difficult once setup.

 

I've been learning forge modding and ran into an issue that I couldn't solve with forge as is, with replacing vanilla stuff. Anyway the GameRegistry.Type and addSubstitutionAlias only support Blocks and Items.  So I cloned the forge files from github and added Type.Biome and inserted code into addSubstitutionAlias to affect the iBiomeRegistry in GameData.  (I could also see making a few more changes here and there in the future). If things worked, I was going to offer any changes back to forge for update review.

 

I've done ./gradlew setupForge...

However, building the project doesn't produce the files in the [home]/.gradle/cache/...../snapshot folder that my mod project classpath points to. Trying to manually point to the newly built stuff in the /myForge/build/distributions folder allows eclipse to not show errors (can't use source code viewing though yet), but ./gradlew build produces errors...doen't recognized the new Type.Biome (looks like still using the original forge in the [home]/gradle/cache/..../snapshot

 

So, my questions are...

On linux...

1) How do I get myForge project to generate a viable snapshot? I can build, but do not get same set of .jars. Taking the stuff out of my newly created mdk.zip and trying to setup new project produces errors. (example of several different tries....

Could not resolve all dependencies for configuration ':forgeGradleUserDevPackage'.
> Could not find net.minecraftforge:forge:1.11.2-13.20.0.0.

 

2) How should I setup my development environment (eclipse/gradle) so that I can swap in and out new versions of forge? (official forge releases and mine) Pointing to my newly created .jars as external libraries in eclipse doesn't allow me to build with them with gradlew.

 

 

Thanks,

Tony

 

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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