Cores

Quick rating

Cores

No reviews yet

a core library

No Theme
No Genre
QoL & Tweaks
Bug Fixes
API/Library
Mod Loaders
Forge
NeoForge
Minecraft
26.2

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Optional
Server Optional

About

Project Details

Type
Mod
License
AM CC 0
Latest Version
cores-26.2-2.0.5-26072700-Neo-all.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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

- **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](https://github.com/An-Mao/Cores/blob/main/image/home_screen.png?raw=true) Select a color scheme: ![Select Color Scheme](https://github.com/An-Mao/Cores/blob/main/image/home_screen_select_color_scheme.png?raw=true) Save and view the results: ![Amber](https://github.com/An-Mao/Cores/blob/main/image/home_screen_change_amber.png?raw=true) ![Sunset](https://github.com/An-Mao/Cores/blob/main/image/home_screen_change_sunset.png?raw=true) ![Teal](https://github.com/An-Mao/Cores/blob/main/image/home_screen_change_teal.png?raw=true) ![Twilight](https://github.com/An-Mao/Cores/blob/main/image/home_screen_change_twilight.png?raw=true) - **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:

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:

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~21,000
Total Downloads
CurseForge
~17,000
Modrinth
~4,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works