Customies icon indicating copy to clipboard operation
Customies copied to clipboard

V2

Open jeantkg opened this issue 2 months ago • 0 comments

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 BlockManager class (src/customiesdevs/customies/block/BlockManager.php) that loads, validates, and registers custom blocks from JSON configuration files in the behavior/blocks directory. This enables dynamic registration of blocks based on user-provided configs.
  • Introduced a new ItemManager class (src/customiesdevs/customies/item/ItemManager.php) that loads, validates, and registers custom items from JSON configuration files in the behavior/items directory. 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.json and resources/behavior/items/custom_example_item.json files, demonstrating the new registration format.

jeantkg avatar Oct 06 '25 18:10 jeantkg