!Title Bar
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! 🧱➡️⛔
Get started with ForbiddenBlocks in just a few simple steps:
plugins directory of your Minecraft server.That's it! ForbiddenBlocks is now ready to help you manage your server's building landscape. 🚀
Take command of your server's building rules with these easy-to-use commands:
/forbiditem [player|global] [itemName]: ⛔ Forbids item placement.
itemName.global to apply the restriction server-wide.itemName is omitted, the item in hand will be forbidden./forbiditem global TNT <- Forbids TNT for everyone
/forbiditem Notch Diamond Block <- Forbids Diamond Blocks for player 'Notch'
/forbiditem global <- Forbids the item you are holding globally
/allowitem [player|global] [itemName]: ✅ Allows item placement.
/forbiditem, permitting the placement of previously forbidden items./forbiditem, allowing you to target players or the global setting, and optionally specify an itemName.itemName is not provided, the item in hand will be allowed again./allowitem global TNT <- Allows TNT for everyone again
/allowitem Notch Diamond Block <- Allows Diamond Blocks for player 'Notch' again
/allowitem global <- Allows the item you are holding globally again
/togglemessages: 💬 Toggles placement restriction messages.
/togglemessages <- Toggles your message notifications
/listforbidden [player]: 📜 Lists forbidden items.
player name to view items forbidden specifically for that player./listforbidden <- Lists globally forbidden items
/listforbidden Notch <- Lists items forbidden for player 'Notch'
/reloadconfig: 🔄 Reloads plugin configuration.
config.yml file without requiring a server restart./reloadconfig <- Reloads the config.yml
Fine-tune access to the ForbiddenBlocks commands with these permissions:
forbiddenblocks.forbid: ⛔ Allows use of /forbiditem to restrict item placement.
forbiddenblocks.allow: ✅ Allows use of /allowitem to re-enable item placement.
forbiddenblocks.togglemessages: 💬 Allows use of /togglemessages to manage notifications.
forbiddenblocks.list: 📜 Allows use of /listforbidden to view forbidden items.
forbiddenblocks.reload: 🔄 Allows use of /reloadconfig to reload the configuration.
# Example in permissions plugin (like LuckPerms)
groups:
admin:
permissions:
- forbiddenblocks.* # Gives all ForbiddenBlocks permissions to admins
builder:
permissions:
- forbiddenblocks.list # Allows builders to list forbidden items
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:
Messages: ✉️ Tailor the in-game messages to your liking!
<color:red>, styles <b>, and more! ✨config.yml for default message examples and unleash your creativity! 🎨messages.cannotPlace: Message when a player tries to place a forbidden block.messages.itemForbidden: Message when an item is successfully forbidden.messages.itemAllowed: Message when an item is successfully allowed.messages.mustHoldNamedItem: Message when /forbiditem or /allowitem is used without holding a named item.messages.noPermission: Generic no permission message.messages:
cannotPlace: "<red>🚫 You are not allowed to place <item>here!</red>"
itemForbidden: "<green>✅ <item> is now forbidden!</green>"
itemAllowed: "<green>✅ <item> is now allowed again!</green>"
mustHoldNamedItem: "<yellow>⚠️ You must be holding an item with a display name!</yellow>"
noPermission: "<red>❌ You don't have permission to use this command.</red>"
Options: ⚙️ Global plugin settings.
sendMessages: A boolean option (true/false) to globally control whether the plugin sends restriction messages to players.
true (default): Messages are sent to players when they try to place a forbidden block.false: No messages are sent, providing a silent restriction.options:
sendMessages: true
playerForbiddenItems: 🗂️ Manage forbidden items with precision.
global: A list of item display names that are forbidden for all players on the server.
minecraft:bedrock), and even MiniMessage formatted display names for advanced item customization.playerForbiddenItems:
global:
- "TNT"
- "Minecraft:Bedrock" # Example with namespace
- "<gradient:#FF0000:#0000FF>Super Explosive Crate</gradient>" # Example with MiniMessage formatting
PlayerName: Create sections for individual players using their exact player names.
playerForbiddenItems: global: - "TNT" Notch: # Player-specific restrictions for 'Notch' - "Oak Log" - "Oak Plank"
The ForbiddenBlocks plugin works by:
BlockPlaceEvent in your Minecraft server. This event is triggered every time a player attempts to place a block. 👂config.yml under playerForbiddenItems.global. 🌎config.yml under playerForbiddenItems.PlayerName. 👤BlockPlaceEvent, preventing the block from being placed. 🚫
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. ✨
🤝 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! 🚀
This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the terms of the license. 📄

This powerful plugin allows you to meticulously control the building environment by restricting the placement of specific items based on their display names. For instance preventing unwanted placement of named or lore containing blocks – ForbiddenBlocks