Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

GlucoseDev/Glucose

Repository files navigation

This is dead. See Gallium for a rewrite of this.

logo

CI Status GitHub contributors Discord GitHub license

Implementation of GlucoseLib on Vanilla Minecraft and a bunch more.

Currently under heavy development, if you wish to use this mod for production then it is recommended you do not!

Prerequisites

  • Java 11 (1.16.5 and below)
  • Java 16 (1.17+)

How to for server admins

  • Download from releases
  • Run it like any other jar file

Contributing

Contributing is always open! :D

Glucose uses patches on a decompiled version of the vanilla Minecraft jar. Why? Minecraft code is proprietary, therefore we cannot distribute it.

Modifying Glucose code

If you are modifying code by glucose (in the src/glucose package) then you will not need to use patches. It is recommended that you fork this repository, make your changes, and then create a pull request.

Modifying Minecraft code

As stated above, Minecraft is closed-source, so we cannot put source code in this repository. To contribute, you will need to use patches

Working with patches

What you will need to do is clone this repository, and run ./glucose d, followed by ./glucose p. You should then hava Minecraft sources in your IDE, if you would like to modify a file which hasn't yet been patched, copy it from the cache.

  • Modify the code how you desire
Creating your first patch

You can just run ./glucose rbp to make patches.

Building

git clone [email protected]:GlucoseDev/Glucose.git
cd Glucose
git submodule update --init --recursive
./glucose decompile
./glucose patch
gradle build

Make sure you have Gradle installed.

You might need to do some tinkering to get it to work sometimes.

Thanks to

  • Loom - Providing scripts and a bunch of base code
  • CanaryMod - A bunch of base code for Lib