▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Cores
Cores

Cores

a core library

Оцените первым
4.3K
0

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_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);
}

}

</details>  


## 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                   |
|----------------------------------------|-----------------------------|-----------------------------|--------------------------|
| <font color=yellow>1.20.1</font>       | <font color=yellow>B</font> | <font color=yellow>B</font> | <font color=red>X</font> |
| <font color=red>1.20.2 - 1.21.0</font> | <font color=red>X</font>    | <font color=red>X</font>    | <font color=red>X</font> |
| <font color=yellow>1.21.1</font>       | <font color=yellow>B</font> | <font color=yellow>B</font> | <font color=red>X</font> |
| <font color=red>1.21.2-26.0</font>     | <font color=red>X</font>    | <font color=red>X</font>    | <font color=red>X</font> |
| <font color=blue>26.1</font>           | <font color=blue>L</font>   | <font color=blue>L</font>   | <font color=red>X</font> |
| **<font color=green>26.2</font>**      | <font color=green>U</font>  | <font color=green>U</font>  | <font color=red>X</font> |


Any questions can be asked in github or contacted as below:  
- Telegram
- Discord
Партнёрский материал

Как поиграть с друзьями с модом Cores?

Мод Cores куда интереснее в компании: поднимите сервер Майнкрафт с уже установленным модом, позовите друзей и играйте по своим правилам. Хостинг Майнкрафт для мода Cores будет готов за пару минут - BungeeHost сделает всё за вас.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.2.x26.1.x1.21.x1.20.x

Платформы

Поддерживаемые окружения

Клиент и сервер

Зависимости

Ссылки

Создатели

Детали

Лицензия:
Опубликован:2 года назад
Обновлён:3 недели назад
Главная