Customies
Customies copied to clipboard
V2
This pull request introduces major changes to the Customies plugin, focusing on a new system for registering custom blocks and items through JSON configuration files, significant codebase restructuring, and removal of legacy block component code. The update also bumps the plugin version to 2.0.0 and updates the API version requirement. Below are the most important changes grouped by theme:
Custom Block and Item Registration Overhaul
- Introduced a new
BlockManagerclass (src/customiesdevs/customies/block/BlockManager.php) that loads, validates, and registers custom blocks from JSON configuration files in thebehavior/blocksdirectory. This enables dynamic registration of blocks based on user-provided configs. - Introduced a new
ItemManagerclass (src/customiesdevs/customies/item/ItemManager.php) that loads, validates, and registers custom items from JSON configuration files in thebehavior/itemsdirectory. This enables dynamic registration of items based on user-provided configs. - Added example JSON files for a custom block and item in the
resources/behavior/blocks/custom_example_block.jsonandresources/behavior/items/custom_example_item.jsonfiles, demonstrating the new registration format.