
BlunthornAPI
An API created for Blunthorn mods. Adds various events and a permission system. Does nothing on its own.
About this Mod
This is an API mod that adds nothing on its own. Its main goal currently is to simplify the process of creating the BlockBlock mod and its addons.
Features
This mod adds a number of events, as well as a permission system framework that allows developers to prevent players from doing certain actions.
Events
BlockBreakEvent.ATTACK - Triggered when a player starts mining a blockBlockBreakEvent.BEFORE - Triggered right before a block is brokenBlockBreakEvent.AFTER - Triggered after a block is sucessfully broken (cannot be cancelled)BlockPlaceEvent - Triggered a player places a blockBlockUseEvent Triggered when a player (right click) uses a blockEntityItemDropEvent - Triggered when a killed entity is about to drop its lootEntityUseEvent - Triggered when a player (right click) uses an entityItemUseEvent - Triggered when a player uses an itemObjectCraftedEvent - Triggered when a player enters a valid recipe in a crafting grid
Permission framework
The permission framework makes it easier to lock a certain action, for a certain item, block, entity or other actions. Locking actions is done on a per-player basis.
The API adds 3 ActionContext classes you can use:BlockActionContext - Used for breaking, placement and block interaction.ItemActionContext - Used for item usage and crafting recipes.EntityActionContext - Used for interacting with entities and preventing their drops.
These context classes contain all the info you might need to decide what you need to do with an action.
Alternatively, you can pass it along to the Permission class using Permission.isObjectLocked(context). This will return whether an object is locked or not for a certain player.
For a more comprehensive guide on how to use the API, please refer to the wiki (under construction).

Available Versions
How to Install BlunthornAPI on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.6).
Install Mod
Open the mod browser in the dashboard and search for "BlunthornAPI". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.20.6, 1.20.5, 1.20.4 (+3 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
BlunthornAPI server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.6). You can switch loaders with one click in the panel.
Is BlunthornAPI compatible with fabric?
BlunthornAPI officially supports fabric for Minecraft 1.20.6, 1.20.5, 1.20.4. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with BlunthornAPI – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if BlunthornAPI consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install BlunthornAPI with just one click on your server.
