Mantle

Shared code for Forge mods
Back to Files

Mantle 1.6.123 for 1.16.5

File nameMantle-1.16.5-1.6.123.jar
Uploader
KnightMinerKnightMiner
Uploaded
Aug 25, 2021
Downloads
1.2M
Size
725.5 KB
Mod Loaders
Forge
File ID
3439180
Type
B
Beta
Supported game versions
  • 1.16.5

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:mantle-74924:3439180")

Learn more about Curse Maven

What's new

Tag preference improvements

  • Improve caching of ItemOutput to reduce lookup time within IRecipe
  • Switch a crash for tags being uncachable to a logged error
  • Make registry ID a fallback for equal mod ID preference

Helpers

  • Added LogicHelper with a couple utilities for common ternaries
  • Added JsonHelper.parseColor to parse a 6 or 8 digit hexadecimal string into a integer color
  • Added JsonHelper.getResourceLocation to parse a resource location from JSON
  • Fix SingleItemHandler not allowing hopper input beyond 1 item

Models

  • Added MantleItemLayerModel (registered as mantle:item_layer). Improves the vanilla item layer by adding a non-tint color option, a no tint option, and a luminosity option. Can be used by other loaders (e.g. tinkers tool model) to add tinted and luminosity elements
  • Ported NBTKeyModel (registered as mantle:nbt_key) from Tinkers. Allows a model to switch between a set of textures based on a string tag in NBT, plus more variants can be registered
  • Added ColoredBlockModel (registered as mantle:colored_block). Allows non-tint colors and luminosity to be set for block style models

This mod has no additional files