Cores

a core library

Редакция NLZONE · 2 мин чтения · 1 просмотр
Cores
Скачать Cores1.20.1 – 26.3 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

a core library

  • Тип: мод
  • Загрузчик: forge, neoforge
  • Версии Minecraft: 1.20.1 – 26.3
  • Скачиваний на Modrinth: 5 080

Подробно

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: Select a color scheme: Save and view the results: - Network Listening : Listens on port 4444 and returns the registered content when accessed by players. java 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 LISTENREGISTER = new Register<>(Cores.MODID, "listen", builder -> builder.sync(false)); // Register instances public static final DeferredHolder IMAGELISTEN = LISTENREGISTER.register("image", ImageListen::new); //public static final DeferredHolder EXAMPLELISTEN = LISTENREGISTER.register("example", ExampleListen::new); // Call this method during mod initialization public static void register(IEventBus eventBus){ LISTENREGISTER.register(eventBus); } // Assuming this is your Mod initialization function (co

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также