Custom Barrier

Quick rating

Community listing page, reviews here may not be monitored by the author.

Custom Barrier

No reviews yet

A small mod that add configurable barrier

Mod Loaders
Minecraft

About

Description


CustomBarrier

CustomBarrier is designed for map makers, server administrators, and creators. It introduces a highly configurable barrier block featuring selective player pass-through, custom particle effects, and optional opaque rendering.

Whether you are building a VIP area, a progression-locked dungeon, or complex adventure maps, CustomBarrier gives you total control over who gets to pass.


🌟 Features

  • Three Pass-Through Modes: Control access dynamically using an easy-to-use in-game GUI.
  • Ethereal Effect: A status effect granted on that allows temporary passthrough.
  • Custom Particles: Assign any particle type ID per block to match your build's aesthetic.
  • Opaque Toggle: Toggle visibility! Choose between standard invisible barriers or render them as an End Gateway block.
  • Waterloggable: Seamlessly integrates into underwater builds.
  • Intuitive Configuration GUI: Easily configure settings in-game (requires Creative Mode & OP Level 2).

Effect Block

A block that applies a status effect to any living entity touching it. Usage

Place the Effect Block
Right-click it as a creative op (offhand empty, not holding the effect block item)
Enter the effect string: <effect_id> <duration_ticks> <amplifier> (e.g. minecraft:speed 100 2)
Press Save — any entity that walks through the block receives the effect

🛠️ Access & Mode Reference

To configure a block, simply right-click it with an empty offhand while in Creative mode (and holding any item other than the barrier itself).

Mode Check Field Value Behavior
TAG Scoreboard tag (or comma-separated list) Player must have all listed tags to pass.
PLAYER Display name (or comma-separated list) Player's display name must match to pass.
PREDICATE Loot predicate ID Evaluated via vanilla PredicateManager. (Great for use with Misode's Predicate Generator)
MAINHAND Item ID Player must have the item in the main hand to pass.

📋 Requirements & Quick Start

  1. Place the Custom Barrier block.
  2. Configure your restrictions and aesthetics via the right-click GUI.
  3. Save your settings. The block will automatically allow or deny collision based on the player's credentials!

Dependencies:

  • Minecraft: 1.19.2
  • Fabric Loader: ≥0.16.0
  • Fabric API: ≥0.77.0+1.19.2

📄 License

This project is licensed under the MIT License. Feel free to include it in your modpacks!