Skip to content

CoreModule

Kapitencraft edited this page Jun 25, 2026 · 1 revision

core module. provides basic functionality, like helpers and basic java API.

Helpers

a long list of helpers were implemented to reduce effort in many cases. these can be found in the helpers package and range from MathHelper all the way to TextHelper

Utils

Display Totem Activation Packet

a payload in the network/S2C package allowing players to send totem activation displays (GUI animation & sound) for any entity or item

BlockBreakSet

procedurally generated list of blocks to be broken.

Color

class combining different methods regarding color. includes

  • mixing different colors
  • conversion to and from 32bit ARGB
  • network IO (StreamCodec)
  • disk IO (Codec)

Damage Counter

can count damage in order to display the results or use it for other purposes

Extra Rarities

vanilla has 4 rarities (colour):

  1. common (white)
  2. uncommon (green)
  3. rare (blue)
  4. epic (light purple)

KapLib adds another 3: 5. legendary (gold) 6. mythic (purple) 7. divine (aqua)

which can be accessed from the ExtraRarities class

Update Checker

update checker aims at replacing the neoforge based update checking system attempting to directly access modrinth instead of waiting for devs to update a JSON.
register update checkers for your own mod using the dedicated event in RegisterUpdateCheckersEvent in the event/custom package

Scrollable Tooltips

allows to scroll tooltips larger than the height of the screen.

Base Attribute Locations

base attribute locations for some attributes that were missing some. base attribute locations are used when adding attribute modifiers to items, making the modifier appear green instead of blue

IO

some serializer classes are added to reduce effort when attempting to create datapack registries that should optionally be synced

Fixes

This mod fixes a few bugs present in vanilla code, that being the motion inconsistency from projectiles with large speed appearing to fly in a different direction on the client due to precision loss when synchronizing.

The module also introduces a config value to modify the maximum level that anvils allow. vanilla default is 40 levels.

String Converter

adds simple string to expression conversion.

Clone this wiki locally