Skip to content

tgraupmann/MinecraftChromaMod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Chroma Mod

This Mod is built with MinecraftForge and displays Chroma RGB effects for various game events.

JChromaSDK.java exposes the C++ CChromaEditor library functions for Java.

JChromaSDK is able to play Razer Chroma animations from the Project Resources.

Latest

  • GamingWave added support for (MinecraftForge 47.1.0 MInecraft: 1.20.1) on a fork.

Table of Contents

See Also

Docs:

Mods:

Editors:

Quick Start

  • You may need to migrate your account to a Microsoft Account in order to update the launcher to install 1.17.1.

  • Use the Minecraft launcher to use the Minecraft Java Edition

image_22

  • Visit the Releases Section to run the installers.

  • Use the Minecraft Forge Universal Installer for client and server

  • Use the mod installer that matches the Minecraft Forge version

  • To run a local Minecraft server modify the %APPDATA%\.minecraft\eula.txt to accept.

eula=true
  • To run Minecraft as a dedicated server and use Chroma on the clients, install the server mod on the server.

The client mod with Chroma will be allowed because the modid matches on server and client.

  • To run a dedicated server, run the following in the command-prompt.
CD %appdata%\.minecraft
CALL java -Xmx4096M -jar libraries\net\minecraft\server\1.17.1\server-1.17.1.jar nogui
  • Or put a batch file in your .minecraft folder to start the server.

run_minecraft_server.cmd

CALL java -Xmx4096M -jar libraries\net\minecraft\server\1.17.1\server-1.17.1.jar nogui
  • The server will not be able to run the client mod. So you'll want to uninstall the client mod on the server and install the server mod on the server.

  • Connect to Minecraft dedicated servers using port: 25565.

image_24

Chroma Effects

  • Base Effect

  • Main Menu Effect

  • In Water Effect

  • Place Block Effect

  • Craft Item Effect

  • Player Damage Effect

  • Fire Arrow Effect

  • Kill Pig Effect

  • Kill Chicken Effect

  • Open Chest Effect

  • Open Door Effect

  • Close Door Effect

  • Sword Attack Effect

  • Spawn Fish Effect

  • Potion Effect

  • Raining Effect

  • Snowing Effect

  • Ladder Effect

  • Riding Cart Effect

Videos

Setup Video

Intro Video

More Chroma Effects

Weather

Setup and Build

This section is only needed to build a new mod installer or to make changes to the mod.

image_9

  • The installer can set the JAVA_HOME for you.

image_23

  • Set the JAVA_HOME environment variable to the path of the 64-bit version of the JDK. Gradle will report out of memory with the 32-bit JDK version which can be fixed in the gradle.properties file if you have to.

The path will vary depending on the JAVA version that you install.

JAVA_HOME
C:\Program Files\Eclipse Foundation\jdk-16.0.2.7-hotspot\

image_8

Above: Install the Server and Client

  • Make sure you do both for the Minecraft Forge handshake to work.

  • That means double-click forge-1.17.1-37.0.108-installer.jar and use the UI to install both.

image_10

image_11

Get the mod

  • Download the Minecraft Forge MDK

image_14

  • Extract the MDK to a folder like: C:\Public\forge-1.17.1-37.0.108-mdk

image_15

  • Make sure the path isn't too long to avoid compile errors.

Check that the MDK can build and run

  • Use Start->Run, enter cmd, and press OK.

cmd

image_12

  • CD to the extracted folder Ie.
CD "C:\Public\forge-1.17.1-37.0.108-mdk"

image_16

Generate Eclipse Project

gradlew genEclipseRuns

image_17

Start the mod (on the command-line)

gradlew runClient

image_18

Manually Merge Changes

  • With a properly setup developer environment that can compile MCF mods, now we need to make sure the Chroma Mod has the latest updates.

  • Compare the MDK changes with the MinecraftChromaMod

  • Unfortunately, every minor .x release will have class name and package namespace changes that need manually merged.

image_20

image_21

  • Likely there will also be minor build changes that can be copied over.

  • Use Winmerge or your favorite diff tool to manually merge in those changes.

image_19

  • With all the changes merged, you can continue to build the Chroma mod.

Now repeat the steps to run the Chroma MOD sample

cmd

image_12

  • CD to the checkout folder Ie.
CD "C:\Public\MinecraftChromaMod"

image_13

Generate Eclipse Project

gradlew genEclipseRuns

Launch Eclipse

Use the File->Import menu item

image_1

Select Gradle\Existing Gradle Project and click Next

image_2

Browse to the MinecraftChromaMod folder and click Finish

image_3

If the import is successful, the project shouldn't have any compile errors.

image_4

Use the Run toolbar drop down

image_5

Select Run Configurations...

image_6

Start the mod (from Eclipse)

  • Select the Java Application -> runClient and click Run

image_7

Start the mod (on the command-line)

gradlew runClient

Build the build\libs\modid-1.0.jar

gradlew build

Build the installer with InnoSetup

Support

Support is available on Discord, you can reach me at tgraupmann.