Mod

BlunthornAPI

Quick rating

BlunthornAPI

No reviews yet

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

API/Library
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unknown
Server Unknown

About

Project Details

Type
Mod
License
MIT License
Latest Version
1.0.7-1.20.x

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

About

Description

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


8bd6d7ff822dc33ffb55af6cc0c7062cec53e9e3.png

Blunthorn Banner

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~3,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync