
Что это
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 и ждёт проверки редакцией.
Комментарии 0
Комментарии к этому материалу отключены.
Читайте также
Mace Music
Plays Chaos Construct by AZALI or songs that the user imports, plays if the user is holding a mace. 05.12.2026
Better Programmer Glass
Makes the old glass and stained glass texture cleaner while keeping the older style. For use with programmer art style resourcepacks 05.12.2026
Climbable Chains
Lets you climb chain blocks across multiple versions! 05.12.2026
Sulfur Cave Labyrinth
An underground puzzle structure for Sulfur Caves 05.12.2026
Piekarnia Modpack
A balanced survival-focused modpack that adds depth and immersion without the overwhelm of kitchen-sink packs. Perfect for players who want… 05.12.2026
Mad Pixels 16x
The 16x version of Mad Pixels. Make your Minecraft world simpler and more cheerful with the Mad Pixels resource pack! 05.12.2026