BlunthornAPI

BlunthornAPI

An API created for Blunthorn mods. Adds various events and a permission system. Does nothing on its own.

by
3.9K Downloads
fabriclibraryutility
Rent Server with this Mod

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 block

BlockBreakEvent.BEFORE - Triggered right before a block is broken

BlockBreakEvent.AFTER - Triggered after a block is sucessfully broken (cannot be cancelled)

BlockPlaceEvent - Triggered a player places a block

BlockUseEvent Triggered when a player (right click) uses a block

EntityItemDropEvent - Triggered when a killed entity is about to drop its loot

EntityUseEvent - Triggered when a player (right click) uses an entity

ItemUseEvent - Triggered when a player uses an item

ObjectCraftedEvent - 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).


Blunthorn Banner

Available Versions

BlunthornAPI 1.0.7-1.20.xrelease
MC 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6fabric
October 30, 2024
BlunthornAPI 1.0.6-1.20.xrelease
MC 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6fabric
September 28, 2024
BlunthornAPI 1.0.5-1.20.xrelease
MC 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6fabric
September 24, 2024
BlunthornAPI 1.0.4-1.20.xrelease
MC 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6fabric
September 17, 2024
BlunthornAPI 1.0.3-1.20.xrelease
MC 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6fabric
September 10, 2024

How to Install BlunthornAPI on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.6).

3

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

fabric

Minecraft Versions

1.20.6, 1.20.5, 1.20.4 (+3 more)

Server-side

Unsupported

Recommended 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.

Rent Modded Server

Install BlunthornAPI with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Unsupported

Supported Versions

1.20.61.20.51.20.41.20.31.20.21.20.1