Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.8] Setting up CCC and NEI


Recommended Posts

This guide is to help you install NEI (Not enough items) and CCC (CodeChickenCore) into your workspace.

 

1. Download CCC and NEI

You will need to download CCC and NEI to use them. Download them by going to this link. You will need the dev version for both CCC and NEI.

 

2. Place CCC and NEI

Now, since you have NEI and CCC downloaded, place them in your eclipse/mods folder.

 

3. Run MC

Now that you have the mods installed, simply run minecraft.

 

4. MCP Config Dir

If you have everything correctly, a window should popup saying "Select an mcp conf dir for the deobfuscator"

If this comes up, download this file. Unzip the file and direct the selection window to that file.

You should now have CCC and NEI installed.

 

 

If you have any questions, feel free ask them and I will try to respond as quick as I can.

 

Link to post
Share on other sites

 

2. Place CCC and NEI

Now, since you have NEI and CCC downloaded, place them in your eclipse/mods folder.

 

Please don't use the mods folder... The libs folder is there for a reason.

 

I'd do it like this:

  • Place the jars into the libs/ folder
  • rerun
    gradlew setupDecompWorkspace

    (or

    gradlew setupDevWorkspace

    if you don't want the MC source). It'll automatically add the jars inside the libs/ folder as libraries.

 

4. MCP Config Dir

If you have everything correctly, a window should popup saying "Select an mcp conf dir for the deobfuscator"

If this comes up, download this file. Unzip the file and direct the selection window to that file.

You should now have CCC and NEI installed.

 

No need to download anything... If you've set up ForgeGradle correctly, the conf dir is

C:\Users\[YOUR_USERNAME]\.gradle\caches\minecraft\net\minecraftforge\forge\[YOUR_FORGE_VERSION]\unpacked\conf

(Windows path, other OS may differ)

 

PS:

If you're feeling really fancy and know your way around the build.gradle script, add CCC and NEI as dependencies:

https://github.com/SanAndreasP/TurretModRebirth/blob/master/build.gradle#L25-L27

https://github.com/SanAndreasP/TurretModRebirth/blob/master/build.gradle#L83-L85

 

and rerun the gradlew setupDecomp/DevWorkspace command with the --refresh-dependencies parameter, like

gradlew setupDecompWorkspace --refresh-dependencies

 

... effectively skipping Step 1 and 2.

 

PPS:

A nice fact about CCC: It automatically decompiles any mod dropped inside the libs/ (or mods/) folder, very useful if you want to do compatibility stuff for a mod and you don't have any source for it available.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to post
Share on other sites
  • 2 months later...

PS:

If you're feeling really fancy and know your way around the build.gradle script, add CCC and NEI as dependencies:

https://github.com/SanAndreasP/TurretModRebirth/blob/master/build.gradle#L25-L27

https://github.com/SanAndreasP/TurretModRebirth/blob/master/build.gradle#L83-L85

 

Why add them as dependencies in the

buildscript

block? Isn't that only for the build script's dependencies?

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.

Link to post
Share on other sites

PS:

If you're feeling really fancy and know your way around the build.gradle script, add CCC and NEI as dependencies:

https://github.com/SanAndreasP/TurretModRebirth/blob/master/build.gradle#L25-L27

https://github.com/SanAndreasP/TurretModRebirth/blob/master/build.gradle#L83-L85

 

Why add them as dependencies in the

buildscript

block? Isn't that only for the build script's dependencies?

 

I always thought it is needed for

gradlew build

, for if you actively reference the classes inside those libs!?

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to post
Share on other sites

The buildscript-dependencies are for stuff that you need inside the build.gradle ;)

 

Ooh, so adding CCC and NEI to the buildscript-dependencies is completely useless... The more you know :D

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to post
Share on other sites
  • 3 weeks later...
  • 1 month later...

 

2. Place CCC and NEI

Now, since you have NEI and CCC downloaded, place them in your eclipse/mods folder.

 

Please don't use the mods folder... The libs folder is there for a reason.

 

I'd do it like this:

  • Place the jars into the libs/ folder
  • rerun
    gradlew setupDecompWorkspace

    (or

    gradlew setupDevWorkspace

    if you don't want the MC source). It'll automatically add the jars inside the libs/ folder as libraries.

 

4. MCP Config Dir

If you have everything correctly, a window should popup saying "Select an mcp conf dir for the deobfuscator"

If this comes up, download this file. Unzip the file and direct the selection window to that file.

You should now have CCC and NEI installed.

 

No need to download anything... If you've set up ForgeGradle correctly, the conf dir is

C:\Users\[YOUR_USERNAME]\.gradle\caches\minecraft\net\minecraftforge\forge\[YOUR_FORGE_VERSION]\unpacked\conf

(Windows path, other OS may differ)

 

PS:

If you're feeling really fancy and know your way around the build.gradle script, add CCC and NEI as dependencies:

https://github.com/SanAndreasP/TurretModRebirth/blob/master/build.gradle#L25-L27

https://github.com/SanAndreasP/TurretModRebirth/blob/master/build.gradle#L83-L85

 

and rerun the gradlew setupDecomp/DevWorkspace command with the --refresh-dependencies parameter, like

gradlew setupDecompWorkspace --refresh-dependencies

 

... effectively skipping Step 1 and 2.

 

PPS:

A nice fact about CCC: It automatically decompiles any mod dropped inside the libs/ (or mods/) folder, very useful if you want to do compatibility stuff for a mod and you don't have any source for it available.

 

The unpacked folder no longer exists.  What should I do then?

Written by me, executed by me, dead to me.

Link to post
Share on other sites

The unpacked folder no longer exists.  What should I do then?

 

Recent versions of ForgeGradle put the MCP mappings in ~/.gradle/caches/minecraft/de/oceanlabs/mcp/<mappings_type>/<mappings_version> (replace ~ with %USERPROFILE on Windows).

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.

Link to post
Share on other sites
  • 3 weeks later...

If you update CodeChickenLib to 1.1.2.132 or newer and CodeChickenCore to 1.0.5.36, they should use the paths provided by ForgeGradle itself to find MCP mappings.

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.

Link to post
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.

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



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • And also if u could help create a server with forge 
    • package com.example.examplemod; import java.util.Collection; import net.minecraft.client.Minecraft; import net.minecraft.client.network.NetworkPlayerInfo; import net.minecraft.command.CommandBase; import net.minecraft.command.CommandException; import net.minecraft.command.ICommand; import net.minecraft.command.ICommandSender; import net.minecraftforge.client.ClientCommandHandler; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; @Mod(modid = "PartyAll", name = "PartyAll", version = "1.0", acceptedMinecraftVersions = "[1.16.X]") public class ExampleMod extends CommandBase {   @EventHandler   public void init(FMLPostInitializationEvent event) {     MinecraftForge.EVENT_BUS.register(this);     ClientCommandHandler.instance.func_71560_a((ICommand)this);   }      public int func_82362_a() {     return 0;   }      public String func_71517_b() {     return "pall";   }      public String func_71518_a(ICommandSender sender) {     return null;   }      public void func_71515_b(ICommandSender sender, String[] args) throws CommandException {     (new Thread(() -> myRun(sender))).start();   }      public void myRun(ICommandSender sender) {     Collection<NetworkPlayerInfo> playersC = Minecraft.func_71410_x().func_147114_u().func_175106_d();     playersC.forEach(loadedPlayer -> {           String loadedPlayerName = loadedPlayer.func_178845_a().getName();           (Minecraft.func_71410_x()).field_71439_g.func_71165_d("/p " + loadedPlayerName);           try {             Thread.sleep(150L);           } catch (InterruptedException e) {             e.printStackTrace();           }          });   } @Override public String getCommandName() {     // TODO Auto-generated method stub     return null; } @Override public String getCommandUsage(ICommandSender sender) {     // TODO Auto-generated method stub     return null; } @Override public void processCommand(ICommandSender sender, String[] args) throws CommandException {     // TODO Auto-generated method stub      } }  
    • Now that i'm using 1.16 it still gives me errors with the func_ note: I'm not a professional
    • I am installing forge but then it changes it in WinRar version and then i cant do anything with it please help 😪
    • The darkness is associated with ambient occlusion, in your block class you can modify this with: @Override public float getAmbientOcclusionLightValue(BlockState state, IBlockReader worldIn, BlockPos pos) { return (some float); } I've found that small values (usually around 0.1F) reduce the dark. Alternatively in your block model json you can disable or enable occlusion with: "ambientocclusion": true/false  
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.