MonitoringMinecraft MonitoringMinecraft

BlunthornAPI

Мод Fabric

BlunthornAPI — библиотека для модов Blunthorn в Майнкрафт: события и система прав, сама по себе ничего не добавляет

4.2к скачиваний 2 подписчика
Оцените первым

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

Смотри также

Похожие подборки моды — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

SkyBars
SkyBars Java + BE
585 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
HyperGrief
0 онлайн
1.16.5 — 26.2 версия
Лучшая анархия на 2026 год
AxisMine - ВаниллаPlus
9 онлайн
1.21.4 — 26.1.2 версия
Ванильный мир с сотнями уникальных механик и справедливой игрой! /free, pat-pat, emotecraft, Voice.
MigosMc
MigosMc Java + BE
888 онлайн
1.8 — 26.2 версия
🌿 MigosMc.net | Гриферский сервер с войс-чатом | Награды за онлайн ⭐ ВЫЖИВАНИЕ⭐ ОДИНБЛОК⭐ МИНИ-ИГРЫ
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.16.5. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат