• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

tgraupmann/MinecraftChromaMod: A Minecraft Sample Mod that does Chroma RGB

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

tgraupmann/MinecraftChromaMod

开源软件地址(OpenSource Url):

https://github.com/tgraupmann/MinecraftChromaMod

开源编程语言(OpenSource Language):

Java 99.7%

开源软件介绍(OpenSource Introduction):

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.

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 Tim Graupmann#0611.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Nsiso/NsisoLauncher: A New Minecraft Launcher from Nsiso发布时间:2022-08-17
下一篇:
Realizedd/TokenManager: An economy plugin for minecraft.发布时间:2022-08-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap