HomeJavaModsForbidden Blocks Paper
Forbidden Blocks Paper
ModsJava

Forbidden Blocks Paper

by Evol-Luci · on Modrinth

This powerful plugin allows you to meticulously control the building environment by restricting the placement of specific items based on their display…

⬇ Download on Modrinth
Forbidden Blocks Paper — screenshot 1Forbidden Blocks Paper — screenshot 2Forbidden Blocks Paper — screenshot 3Forbidden Blocks Paper — screenshot 4Forbidden Blocks Paper — screenshot 5Forbidden Blocks Paper — screenshot 6Forbidden Blocks Paper — screenshot 7Forbidden Blocks Paper — screenshot 8

Title Bar

🚫 ForbiddenBlocks Plugin 🛡️

Description

Enhance your Minecraft server's gameplay with the ForbiddenBlocks Plugin! 🎉 This powerful plugin allows you to meticulously control the building environment by restricting the placement of specific items based on their display names. Imagine preventing unwanted placement of named or lore containing blocks – ForbiddenBlocks makes it easy! 🛠️

Server administrators and players with the necessary permissions gain the ability to forbid or allow item placement, offering a versatile tool for server management. Restrictions can be applied globally, affecting all players, or specifically to individual players, providing fine-grained control over block placement. Whether you want to prevent the use of certain decorative blocks in a survival world or restrict building in specific zones, ForbiddenBlocks gives you the power! 🧱➡️⛔

Installation Instructions

Get started with ForbiddenBlocks in just a few simple steps:

  1. 📥 Download the ForbiddenBlocks plugin JAR file.
  2. 📂 Place the JAR file into the plugins directory of your Minecraft server.
  3. 🔄 Restart your server to activate the plugin.

That's it! ForbiddenBlocks is now ready to help you manage your server's building landscape. 🚀

Usage

Take command of your server's building rules with these easy-to-use commands:

Commands

Permissions

Fine-tune access to the ForbiddenBlocks commands with these permissions:

Configuration

Customize ForbiddenBlocks to perfectly fit your server's needs by editing the config.yml file, located in the plugin's folder.

Here's a breakdown of the configuration options:

How it works ⚙️

The ForbiddenBlocks plugin works by:

  1. Listening to Block Placement Events: The plugin registers an event listener that monitors BlockPlaceEvent in your Minecraft server. This event is triggered every time a player attempts to place a block. 👂
  2. Checking Item Display Names: When a block placement event occurs, the plugin retrieves the item from the player's hand and checks if it has a display name. It then uses MiniMessage to serialize this display name to a string. 🏷️
  3. Verifying Against Forbidden Lists: The plugin then checks this display name against two lists:
    • Global Forbidden Items: A list of items forbidden for all players, defined in the config.yml under playerForbiddenItems.global. 🌎
    • Player-Specific Forbidden Items: Lists of items forbidden for specific players, also defined in config.yml under playerForbiddenItems.PlayerName. 👤
  4. Cancelling Placement and Notifying Player: If the placed item's display name is found in either the global or the player-specific forbidden lists, the plugin cancels the BlockPlaceEvent, preventing the block from being placed. 🚫
    • If enabled in the configuration (options.sendMessages: true), the plugin sends a customizable message to the player informing them that they are not allowed to place the block. 💬

This process ensures that block placement restrictions are enforced smoothly and efficiently, enhancing your server's control over the building environment. ✨

Contributing

🤝 Contributions are welcome! If you have ideas for improvements, new features, or bug fixes, please don't hesitate to contribute!

Let's make ForbiddenBlocks even better together! 🚀

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the terms of the license. 📄

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more