Conditional Barriers

A Fabric mod for Minecraft that allows players to pass through barrier blocks based on configurable rules or external conditions via an API.

Редакция NLZONE · 2 мин чтения · 1 просмотр
Conditional Barriers
Скачать Conditional Barriers1.21.1 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

A Fabric mod for Minecraft that allows players to pass through barrier blocks based on configurable rules or external conditions via an API.

  • Тип: мод
  • Загрузчик: fabric
  • Версии Minecraft: 1.21.1
  • Скачиваний на Modrinth: 1 430

Подробно

ConditionalBarriers is a Fabric mod for Minecraft that allows players to pass through barrier blocks based on configurable rules or external conditions via an API.

By default, barrier blocks are impassable for everyone. This mod changes that by allowing fine-grained control over who can walk through them, making it ideal for map makers, server administrators, and developers.

- Configurable Pass Rules: Define who can pass through barriers using various criteria (Game Mode, Permission Level, Player Name, UUID, Scoreboard Tags). - Developer API: Easily register custom conditions to control barrier accessibility from other mods. - In-game Commands: Manage the mod's state and reload configuration without restarting the server. - No More Suffocation: Automatically prevents players from suffocating inside barriers if they are allowed to pass through them. - High Performance: Implemented using optimized Mixins to ensure minimal impact on server performance.

The mod provides the following commands (requires permission level 2 or higher):

- /conditionalbarriers on: Enables rule evaluation. - /conditionalbarriers off: Disables the mod's logic (making all barriers passable for everyone). - /conditionalbarriers status: Displays whether the mod is currently active. - /conditionalbarriers reload: Reloads the configuration from the disk. - /cb: A shorter alias for /conditionalbarriers.

The configuration file is located at config/conditionalbarriers.json. It allows you to define a list of rules that are evaluated in order.

json { "defaultPassable": false, "rules": [ { "type": "SPECTATOR", "action": "ALLOW" }, { "type": "CREATIVE", "action": "ALLOW" }, { "type": "SCOREBOARDTAG", "action": "ALLOW", "value": "canpassbarriers" }, { "type": "OPERATORLEVEL", "action": "ALLOW", "operatorLevel": 4 } ] }

Rule Types - CREATIVE: Matches players in Creative mode. - SPECTATOR: Matches players in Spectator mode. - OPERATORLEVEL: Matches players with a specific permission level. - PLAYERNAME: Matches a specific player name (case-sensitive option available). - PLAYERUUID: Matches a specific player UUID. - SCOREBOARDTAG: Matches players with a specific scoreboard tag.

ConditionalBarriers is required on both the client and the server to function correctly. This is because the client's physics engine needs to know when a barrier block should be non-solid to allow for smooth move

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также