← Назад к ресурсам

Knight Lib

A library that serves as a bridge between mods.

Modrinth game-mechanics library utility

Описание

  KnightLib is a multiloader utility library designed to eliminate code duplication and provide clean implementations of systems that every mod tends to reinvent from scratch.● This library is fully compatible with Forge, NeoForge (1.21.1+), and Fabric, built on Jared's multiloader template.● This mod includes a small amount of content that is disabled by default. Any mod wishing to use the content (items, blocks, icons, etc.) must first enable it in its implementation. For any questions, problems, contributions, new ideas about content/mods, and more, you can join our official Discord and comment in the appropriate channels.   What's included NetworkingPer mod S2C/C2S packet channels with a simple send/receive API Auto ConfigTOML config with auto generated ingame GUI, hotreload, and Configured/ModMenu (fabric) compatiblity Event BusA common event system that abstracts calls to their respective loaders, so that everything can be managed in common package. Automaton AIFinite state machine system for complex entity AI behavior. OBB HitboxesOriented Bounding Boxes (OBBs) linked to individual model bones, to manage hitboxes more dynamically. Camera ShakeAPI to manage camera shake for specific players, with several levels of configuration. Custom Boss BarsAllows to specify and configure custom boss bars (in real time) for the entities you want. CutscenesIn-game cutscene editor that automatically exports the desired JAVA code to use it wherever you want (only available in dev mode). Music ProviderLoops and configures music tracks for entities under custom conditions, such as boss music handling. Post ShadersUtilities for post-processing shaders, including multi-target (experimental) passes. Animation & RenderingIncludes an animation and rendering engine, with support for easings, molang and the bedrock (geo/geckolib) format, among other things, working as an extension of the vanilla pipeline. Biome SpawnsEasy to use API for registering entity spawns per biome. Loot TablesHelpers for modifying loot tables in general (entities, chests, etc.). Persistent SoundsLooping sounds tied to entities, items and blocks, without worrying about overlapping sounds. Entity DataAPI for quickly accessing the persistent data of an entity. AttachmentsAPI for attaching (hence the name) persistent data to any entity, where the information is synched automatically (S2C). Registrar SystemEnhanced common registration helpers for blocks, items, entities, features, etc. Extra UtilitiesAdditional utilities for math, colors, easings, etc.   For Developers See the installation instructions on the project wiki on GitHub. To report bugs or suggest features, or ask any questions in general, join our Discord server or report them via issues!