Jump to content

Recommended Posts

Posted (edited)

Hello,

I was wondering how I update my mod form 1.11.2 to 1.12

 

And, I was also wondering if it is possible to modify main files from in game, as I want to implement a feature to change name case without leaving the server that you are on

Edited by 2veryicey
EDIT: I Would Need To Modify The usercache.json & usernamecache.json
Posted
8 minutes ago, 2veryicey said:

I was wondering how I update my mod form 1.11.2 to 1.12

 

First update your workspace to 1.12 by editing build.gradle. Change the ForgeGradle version from 2.2 to 2.3, change the Forge version to a 1.12 version and change the MCP mappings version to a 1.12 version. After doing this, re-run setupDecompWorkspace and refresh your IDE project.

 

Then start fixing any compilation errors in your code.

 

The main changes from 1.11.2 to 1.12 are overhauls of the registry and crafting recipe systems:

  • GameRegistry.register is now private, use the registry events instead.
  • Recipes are now loaded from JSON files and managed by a Forge registry.

There have been several threads about both of these changes, I suggest searching for them if you have any questions. If you can't find the answers, ask here.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted
9 hours ago, Choonster said:

 

First update your workspace to 1.12 by editing build.gradle. Change the ForgeGradle version from 2.2 to 2.3, change the Forge version to a 1.12 version and change the MCP mappings version to a 1.12 version. After doing this, re-run setupDecompWorkspace and refresh your IDE project.

 

Then start fixing any compilation errors in your code.

 

The main changes from 1.11.2 to 1.12 are overhauls of the registry and crafting recipe systems:

  • GameRegistry.register is now private, use the registry events instead.
  • Recipes are now loaded from JSON files and managed by a Forge registry.

There have been several threads about both of these changes, I suggest searching for them if you have any questions. If you can't find the answers, ask here.

Is This Correct?

 

Screen Shot 2017-07-27 at 7.54.30 PM (2).png

Posted

Don't use <mc_version>-latest as the Forge version (the minecraft.version property), specify a concrete version (e.g. 1.12-14.21.1.2426) so your mod can always be built without being affected by changes in newer versions of Forge.

 

14.21.1.2426 is a Forge version, not an MCP mappings version. The MCPBot website has a list of mappings versions here.

 

Get rid of the sourceCompatibility/targetCompatibility lines, ForgeGradle 2.3 automatically targets Java 8 now that Minecraft 1.12 targets it.

 

Don't post code in screenshots, either include it in your post in a code block (the <> icon) or upload it to a site like Gist/Pastebin and link it here.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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



×
×
  • Create New...

Important Information

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