Repository navigation
Updated the project URL to point to https://slimeknights.github.io/projects/#mantle which includes links for CurseForge, Modrinth, and GitHub.
Utility
- Make it easier to extend faucet fluids loader for upcoming upsidedown channels in tinkers.
- Allow a block to specify it has no faucet fluids using a height of 16.
- Improve contract on
LogicHelper#getOrDefaultto make it easier to use a nullable default value. - Allow the
/mantle tags for targeted fluidcommand to read a fluid capability from the targeted block. - Added
EntityIngredient#getDisplayEggsto create a list of display egg stacks for the newer JEI API versions. - Added
FluidOutput#copyWithAmountas a shorthand fornew FluidStack(fluid.get(), amount). - Make
EdibleItemuse tooltips likeContainerFoodItem. This is partly for consistency, and partly because the two will be merged in 1.21. - Added use animation argument to the edible item constructor.
- Fix wrong damage source being used for sweep attacks in CombatHelper.
- Fix extra sound playing during sweep attacks in CombatHelper.
- Fix remove recipes command not removing recipe advancements, causing log spam.
- Deprecated two unused menu slots that will be removed in 1.21.
Loadable
- Added
StringLoadable#NON_EMPTYfor parsing non-empty strings, along withStringLoadable#lengthfor more specific string length ranges. - Renamed
Loadable#xmaptoLoadable#mapCheckedandLoadable#flatXmaptoLoadable#map.- This was partly done as I cannot keep the names straight and wanted more sane names, and partly done as the names were backwards compared to codec.
- The old names still exist as deprecated for removal in 1.21.
- Deprecate
Loadable#comapFlatMapandLoadable#flatComapfor removal in 1.21 as they were not too useful compared to the other two map methods
Datagen
- Added helper to abstract recipe builder to make it easier to get the casted builder. This may cause compile errors in mods that added a helper with the same name, but does not appear to cause any runtime errors.
- CookingRecipeBuilder now uses the vanilla constructors when serializing a non-tag recipe output unless told to use the Mantle recipes. This allows using it as a far cleaner builder for vanilla cooking recipes (since you often want multiple of those).
- CookingRecipeBuilder now automatically sets the category based on the result for non-tag results.
- Fix CookingRecipeBuilder not including a setter for category.
- Fix model builders requiring you to pass the loader ID.
- Fix retextured model builder allowing you to save without setting texture keys.
Resource Packs
- Added
assets/<domain>/mantle/texturesto allow NBTKeyModel extra textures to be specified outside of Java. This will notably allow Tinkers' Construct addons to add new modifier slot icons in a JSON addon. See this Tinkers' commit for an example of how to use this. Note no Tinkers' update is needed to leverage the new system. - Added our preferred fluid texture folder to the block atlas.
- Ensure a fluid texture failing to parse does not cause other fluid textures to be skipped.
- Remove deprecation warning on luminosity for colored block model as the Forge alternative is just less ideal in a few cases we use.
- Remove unused mantle book model, has not been updated in awhile anyways.
Book
- Optimize book page lookup parsing of resource locations.
- Added component to the default book loader deserializers. Previously it was registered by Tinkers so other Mantle mods did not benefit.
- Fix wrong arguments for book scrolling super call. I am not sure if this caused any issues but it was wrong.
Export
- Added helpers for adding tooltips from an item stack or fluid stack.
- Page title HTML now has a title class to make it easier to modify with CSS.
- When exporting a single book, the version argument was replaced with book key, allowing modifying the entire string. By ID export still uses the suffix approach.
- Pages now include a section start index, allowing adding the "go back to start of chapter" arrow.
- Page descriptions in exports now include the page titles, making embedded links a bit better.
- Fix wrong escape character for single quotes in minetips.
- Fix book export not handling component styling in nested translations.
JEI
- Allow using
IMultiRecipeon vanilla recipes to expand a recipe in a vanilla category. Requires the recipe to returntruefor#isSpecial.
Full Changelog: v1.11.117...v1.11.128