Cores

Cores

a core library

4 955 downloads 0 followers

Cores

简体中文

This mod has a built-in Core library.

A library mod developed for Minecraft mod development. It packages numerous frequently used, repetitive code blocks and offers several practical features.

Player Features

  • Attribute Fix : Modifies the default, maximum, and minimum values of attributes. This can be adjusted via the configuration file.
  • Experience Fix : Modifies experience deduction. When deducting experience levels, it deducts the exact amount of experience points required to level up from level 0 to the target level, instead of using the vanilla calculation of (current level - target level) points. Both of the above features can be disabled via the configuration file.

Developer Features

Developer Features
  • Color Schemes : When using this mod's Screen or certain rendering-related code, you can customize the color palette by changing the color scheme (as shown in the images below). Press the Home key to open the configuration interface: Home Screen Select a color scheme: Select Color Scheme Save and view the results: Amber Sunset Teal Twilight
  • Network Listening : Listens on port 4444 and returns the registered content when accessed by players.
package dev.anye.mc.cores.am.listen;
// For detailed code, please check the dev.anye.mc.cores.am.listen package

// Here is an ImageListen instance  
public class ImageListen extends Listen {

	protected ImageListen() {
		super("assets/cores/html/image/",// Resource path (optional). If provided, files under this path will be automatically loaded upon access.
                "image",// Registration path, used to access this instance (e.g., 127.0.0.1:4444/image/index.html)
                300// Shutdown timeout (seconds). Closes this listener after a period of inactivity.
        );
	}
	// This method has a default implementation that dispatches POST and GET requests to their respective handlers; you can also override it to implement your own logic.
	public void handle(HttpExchange exchange){}
}

// How to register
public class ListenRegister {
	// Get registry
	public static final Register<Listen> LISTEN_REGISTER = new Register<>(Cores.MOD_ID, "listen", builder -> builder.sync(false));
	// Register instances
	public static final DeferredHolder<Listen,ImageListen> IMAGE_LISTEN = LISTEN_REGISTER.register("image", ImageListen::new);
	//public static final DeferredHolder<Listen,ExampleListen> EXAMPLE_LISTEN = LISTEN_REGISTER.register("example", ExampleListen::new);
    
    // Call this method during mod initialization
	public static void register(IEventBus eventBus){
		LISTEN_REGISTER.register(eventBus);
	}
	
	
	// Assuming this is your Mod initialization function (constructor)
	public Cores(IEventBus modEventBus, ModContainer modContainer) {
		ListenRegister.register(modEventBus);
	}
}

Support status by version

B : Bug fixes only
X : No further updates
U : Updates
L :Low-frequency updates
Trend : U -> L -> B -> X
Version Forge Neoforge Fabric
1.20.1 B B X
1.20.2 - 1.21.0 X X X
1.21.1 B B X
1.21.2-26.0 X X X
26.1 L L X
26.2 U U X

Any questions can be asked in github or contacted as below:

No gallery available for this project.

Version Minecraft Loader Download

Cores 26.3-2.0.6-26100600

26.3-2.0.6-26100600

26.3
forge
Download

Cores 26.3-2.0.6-26100400-Neo

26.3-2.0.6-26100400-Neo

26.3
neoforge
Download

Cores 26.3-2.0.6-26100300-Neo

26.3-2.0.6-26100300-Neo

26.3
neoforge
Download

Cores 26.3-2.0.5-26092300-Neo

26.3-2.0.5-26092300-Neo

26.3
neoforge
Download

Cores 26.2-2.0.5-26083000-Neo

26.2-2.0.5-26083000-Neo

26.2
neoforge
Download

Cores 26.1.1-2.0.4-26082801-Neo

26.1.1-2.0.4-26082801-Neo

26.1.1
neoforge
Download

Cores 26.2-2.0.5-26081500-Neo

26.2-2.0.5-26081500-Neo

26.2
neoforge
Download

Cores 26.2-2.0.5-26081301-Neo

26.2-2.0.5-26081301-Neo

26.2
neoforge
Download

Cores 26.2-2.0.5-26072700-Neo

26.2-2.0.5-26072700-Neo

26.2
neoforge
Download

Cores 1.20.1-2.0.0-26072401

1.20.1-2.0.0-26072401

1.20.1
forge
Download

Cores 1.21.1-2.0.0-26072400

1.21.1-2.0.0-26072400

1.21.1
forge
Download

Cores 1.21.1-2.0.2-26072400-Neo

1.21.1-2.0.2-26072400-Neo

1.21.1
neoforge
Download

Cores 1.20.1-2.0.0-26072400

1.20.1-2.0.0-26072400

1.20.1
forge
Download

Cores 26.2-2.0.4-26071701

26.2-2.0.4-26071701

26.2
forge
Download

Cores 26.1.1-2.0.4-26061200-Neo

26.1.1-2.0.4-26061200-Neo

26.1.1, 26.1.2
neoforge
Download

Cores 26.1.1-2.0.4-26060500-Neo

26.1.1-2.0.4-26060500-Neo

26.1.1, 26.1.2
neoforge
Download

Cores 26.1.1-2.0.4-26060500

26.1.1-2.0.4-26060500

26.1.1, 26.1.2
forge
Download

Cores 26.1.1-2.0.3-26041504-Neo

26.1.1-2.0.3-26041504-Neo

26.1.1, 26.1.2
neoforge
Download

Cores 26.1.1-2.0.3-26041503-Neo

26.1.1-2.0.3-26041503-Neo

26.1.1, 26.1.2
neoforge
Download

Cores 26.1.1-2.0.2-26041301

26.1.1-2.0.2-26041301

26.1.1, 26.1.2
forge
Download

Cores 26.1.2-2.0.2-26041101-Neo

26.1.2-2.0.2-26041101-Neo

26.1.2
neoforge
Download

Cores 26.1.1-2.0.2-26041101-Neo

26.1.1-2.0.2-26041101-Neo

26.1.1
neoforge
Download

Cores 26.1.1-2.0.2-26041003-Neo

26.1.1-2.0.2-26041003-Neo

26.1.1
neoforge
Download

Cores 26.1.1-2.0.2-26031801-Neo

26.1.1-2.0.2-26031801-Neo

26.1.1
neoforge
Download

Cores 1.21.11-2.0.2-26020300-Neo

1.21.11-2.0.2-26020300-Neo

1.21.11
neoforge
Download

Cores 1.21.11-2.0.2-25122400

1.21.11-2.0.2-25122400

1.21.11
forge
Download

Cores 1.21.11-2.0.2-25121700-Neo

1.21.11-2.0.2-25121700-Neo

1.21.11
neoforge
Download

Cores 1.21.10-2.0.0-25111900-Neo

1.21.10-2.0.0-25111900-Neo

1.21.10
neoforge
Download

Cores 1.21.1-2.0.2-25110500-Neo

1.21.1-2.0.2-25110500-Neo

1.21.1
neoforge
Download

Cores 1.21.10-2.0.0-25101600

1.21.10-2.0.0-25101600

1.21.10
forge
Download

Cores 1.21.1-2.0.1-25103000-Neo

1.21.1-2.0.1-25103000-Neo

1.21.1
neoforge
Download

Cores 1.21.10-2.0.0-25101600-Neo

1.21.10-2.0.0-25101600-Neo

1.21.10
neoforge
Download

Cores 1.21.10-2.0.0-25101400-Neo

1.21.10-2.0.0-25101400-Neo

1.21.10
neoforge
Download

Cores 1.21.9-2.0.0-25100700-Neo

1.21.9-2.0.0-25100700-Neo

1.21.9
neoforge
Download

Cores 1.20.1-2.0.0-25082101

1.20.1-2.0.0-25082101

1.20.1
forge
Download

Cores 1.21.1-2.0.1-25080801-Neo

1.21.1-2.0.1-25080801-Neo

1.21.1
neoforge
Download

Cores 1.21.1-2.0.1-25080600-Neo

1.21.1-2.0.1-25080600-Neo

1.21.1
neoforge
Download

Cores 1.21.8-2.0.0-25072101

1.21.8-2.0.0-25072101

1.21.8
forge
Download

Cores 1.21.8-2.0.0-25071900-Neo

1.21.8-2.0.0-25071900-Neo

1.21.8
neoforge
Download

Cores 1.21.7-25.07.1100-Neo

1.21.7-25.07.1100-Neo

1.21.7
neoforge
Download

Cores 1.20.1-25.07.0802

1.20.1-25.07.0802

1.20.1
forge
Download

Cores 1.21.1-25.07.0501-Neo

1.21.1-25.07.0501-Neo

1.21.1
neoforge
Download

Cores 1.21.1-25.06.2900-Neo

1.21.1-25.06.2900-Neo

1.21.1
neoforge
Download

Cores 1.21.1-25.06.2000-Neo

1.21.1-25.06.2000-Neo

1.21.1
neoforge
Download

Cores 1.21.5-25.05.2605-Neo

1.21.5-25.05.2605-Neo

1.21.5
neoforge
Download

Cores 1.21.5-25.05.2402-Neo

1.21.5-25.05.2402-Neo

1.21.5
neoforge
Download

Cores 25.05.1700

25.05.1700

1.21.1
forge
Download

Cores 1.21.1-25.05.1300-Neo

1.21.1-25.05.1300-Neo

1.21, 1.21.1
neoforge
Download

Cores 1.21.1-25.02.1304-Neo

1.21.1-25.02.1304-Neo

1.21, 1.21.1
neoforge
Download

Cores 1.21.1-25.02.0301-Neo

1.21.1-25.02.0301-Neo

1.21, 1.21.1
neoforge
Download

Cores 1.21.1-25.01.1900-Neo

1.21.1-25.01.1900-Neo

1.21, 1.21.1
neoforge
Download

Cores 1.21.1-25.01.0800-Neo

1.21.1-25.01.0800-Neo

1.21, 1.21.1
neoforge
Download

Cores 1.21.1-25.01.0300-Neo

1.21.1-25.01.0300-Neo

1.21, 1.21.1
neoforge
Download

Cores 1.21.4-24.12.2605-Neo

1.21.4-24.12.2605-Neo

1.21.4
neoforge
Download

Cores 1.21.1-24.12.2101-Neo

1.21.1-24.12.2101-Neo

1.21, 1.21.1
neoforge
Download

Cores 1.21.1-24.11.2100-neo

1.21.1-24.11.2100-neo

1.21, 1.21.1
neoforge
Download

Cores 1.21.1-24.11.1200-neo

1.21.1-24.11.1200-neo

1.21, 1.21.1, 1.21.2, 1.21.3
neoforge
Download

Cores 1.21.1-24.10.1801-neo

1.21.1-24.10.1801-neo

1.21, 1.21.1
neoforge
Download

Cores 1.21.1-24.10.1700

1.21.1-24.10.1700

1.21.1
forge
Download

Cores 1.21.1-24.10.1001-neo

1.21.1-24.10.1001-neo

1.21, 1.21.1
neoforge
Download

Cores 1.21.1-24.10.0801

1.21.1-24.10.0801

1.21.1
forge
Download

AMLib 1.20.1-0.1.8

1.20.1-0.1.8

1.20.1
forge, neoforge
Download

AMLib 1.21-0.1.8

1.21-0.1.8

1.21
forge
Download

AMLib 1.21-0.1.8-neoforge

1.21-0.1.8-neoforge

1.21
neoforge
Download

AMLib 1.20.1-0.0.20

1.20.1-0.0.20

1.20.1, 1.20.2, 1.20.3, 1.20.4
forge
Download