Wiki 9Minecraft Wiki 9Minecraft

Balm Core Developer Mechanics

Guides 6FAQ 17Related mods 48
DownloadBalm Mod

Get the files on 9Minecraft

Contents (6)
  1. Registries
  2. Event System
  3. Networking and Packets
  4. Data Attachments and Capabilities
  5. Next guides
  6. More in this wiki

Balm provides several abstraction layers that handle the differences between mod loaders automatically. These systems allow developers to interact with Minecraft's core systems through a unified interface.

Registries

Balm utilizes builder-style helpers to register game content. This system removes the need for developers to manage the specific lifecycles or registry events of individual mod loaders. Supported registry types include:

  • Blocks and Items: Simplified registration with automatic BlockItem generation
  • Entities: Unified entity type registration
  • Menu Types and Screens: Streamlined UI registration
  • Recipe Types: Support for custom crafting and processing recipes

Event System

Balm provides a comprehensive mapping for the most frequently used Minecraft events. It hooks into the native events of the active mod loader (Forge, Fabric, or NeoForge) to ensure maximum compatibility and performance while maintaining a single common API for the developer.

Networking and Packets

Networking is handled through a single-call registration system. This allows mods to: * Register custom packets for client-server communication. * Open menus with additional data seamlessly. * Implement network versioning to ensure client and server protocols are synchronized.

Data Attachments and Capabilities

Balm abstracts complex loader-specific concepts like Forge's Capabilities or Fabric's Data Attachments into a unified API. This allows developers to attach custom data to entities, block entities, and item stacks in a way that works across all supported platforms.