MagicBlock icon

MagicBlock -----

A Minecraft plugin offering an infinitely placeable magic block with customizable features for enhan



BUG fixes and feature updates
### MagicBlock Changelog 3.1.6.1-3.2.0.1
#### `Feat`

1. **Anti-Duplication System**: Added a UUID-based anti-duplication system, with UUIDs stored in NBT. When a player holds a MagicBlock, duplicate blocks in their inventory are automatically detected and removed. This feature can be enabled or disabled in the configuration file. The update is backward compatible: missing UUIDs will be automatically added when a block is held.
2. **Shop Plugin Integration**: The `addtimes` command can now be executed from the console using `/mb addtimes <player> <times>`.
3. **Fully Customizable GUI**:
* The GUI is now fully customizable in `config.yml`, including options for: title, number of rows, all buttons (including disabled states), and decorative fillers' material, name, lore, and slots.
* All material options support ItemsAdder custom items (theoretically, not fully tested).
4. **Favorites Feature**:
* Added a block favorites feature. Players can right-click in the GUI to favorite blocks and view them in a dedicated favorites interface.
* The favorites list automatically filters out blocks the player does not have permission to use. Favorites data supports both database and JSON storage.

#### `Refactor`

1. **Data Storage Migration**: The plugin will automatically migrate binding data from `bindings.yml` to a new `bindings.json` file.
2. **Unified Config Structure**: All GUI-related text has been moved from language files (`lang_xx.yml`) to `config.yml`.
3. **Unified Console Message Style**: All command outputs in the console now use a consistent style.
4. **GUI Pagination Optimization**: The "Previous Page/Next Page" buttons are now always displayed and provide visual feedback by switching to a custom "disabled state" style when needed.
5. **`config.yml` Chinese Localization**: The default config comments and content are now in Chinese.

#### `Fix`

1. **Data Migration**: Fixed a crash issue caused by serialization errors during migration from `bindings.yml`.
2. **Container Placement Restrictions**: Improved the mechanism that prevents MagicBlocks from being placed in workbenches, furnaces, villagers, and other functional containers.
3. **Non-Stackable Blocks**: The UUID in NBT now prevents unintended stacking of identical blocks.

---

### **Update Instructions & Notes**

This update involves changes to data structures and configuration files. **Make sure to fully back up your server data before updating.**

1. **Data Migration**
* On first startup, the plugin will automatically migrate data from `plugins/MagicBlock/bindings.yml` to the new `plugins/MagicBlock/data/bindings.json`.
* The old `bindings.yml` will be backed up as `bindings.yml.bak`. Please ensure there are no errors in the console during migration.

2. **`config.yml` Changes**
* **Strongly Recommended**: Back up your old `config.yml`, let the plugin generate a new one, and then manually transfer your previous settings to the new file.
* **GUI Config (`gui`)**: This section has changed significantly. All GUI-related text, button materials, slots, disabled states, etc., are now configured in `config.yml`.
* **New Config Options**: Added relevant options for `anti-duplication` and `favorites` features.

3. **Shop Integration Usage Change**
* If you use a shop plugin, please update its executed command to `mb addtimes %player% <times>`.
----------, Jun 13, 2025
Resource Information
Author:
----------
Total Downloads: 592
First Release: Sep 12, 2023
Last Update: Jun 13, 2025
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings