Release 0.4 Beta
Pre-release
Pre-release
Changelog for the Latest Updates
Enhancements
-
Datapack Initialization: Added support for customizable reward classes. Users can now specify custom classes for parsing advancements through the Datapack constructor using the parameters:
- exp_class
- reward_class
- trophy_class
These classes are validated to ensure they inherit from the appropriate base classes.
-
Reward and Trophy Class Flexibility: Introduced class-level __item_class attributes in Reward and Trophy classes. Allowed subclasses to define their own item classes, enhancing flexibility and maintainability.
-
JSON Parsing: Renamed safe_load_json to safe_load_json_file and added safe_load_json_string for parsing JSON strings directly.
-
Pack Metadata Handling:
- Introduced the PackMCMeta class for parsing and validating pack.mcmeta metadata.
- Updated Datapack and AdvancementManager to utilize PackMCMeta for better path and data validation.
- Removed overlay support limitations and refactored related code.
Documentation Updates
- Clarified that TabNameMapper can be modified after initialization.
- Updated docstrings for return types and properties, such as specifying "Trophy item" for item properties and rephrasing experience-related descriptions.
Bug Fixes & Refactoring
- Advancement Rewards: Updated the Advancement class to initialize rewards using customizable classes specified during Datapack initialization.
- PackMCMeta Integration: Refactored existing code to consistently use PackMCMeta for metadata management.