LibCapableData (LibCD)

Improved data processing for Fabric and 1.14

File Details

2.5.0+1.16.1

  • R
  • Jun 26, 2020
  • 327.77 KB
  • 27.4K
  • 1.16.1+2
  • Fabric

File Name

libcd-2.5.0+1.16.1.jar

Supported Versions

  • 1.16-Snapshot
  • 1.16.1
  • 1.16

Curse Maven Snippet

Fabric

modImplementation "curse.maven:libcd-323710:2989030"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

  • Update to Minecraft 1.16.1
  • Split LibCDInitializer into three separate entrypoints
    • libcd:tweakers (class TweakerInitializer) initializes the tweaker manager, libcd:conditions(class ConditionInitializer) initializes the condition manager, and libcd:advancement_rewards (class AdvancementInitializer) initializes the advancement reward manager
    • the libcd (class LibCDInitializer) entrypoint still exists and is run for all three initializations, as well as extending all three other initializers
  • Add in support for smithing recipes to RecipeTweaker
  • Add in a system for defining crafting recipes with custom scripted requirements and behaviors
    • Custom recipes can be shaped, shapeless, or special crafting recipes, and are registered with their respective methods in RecipeTweaker
    • Custom recipes must provide a ScriptBridge for a script that defines three functions:
      • boolean matches(StackInfo[] stacks, int width, int height, WrappedPlayer player, WorldInfo world)
      • @Nullable Object preview(StackInfo[] stacks, int width, int height, WrappedPlayer player, MutableStack output) (if null is returned then output will be treated as the output stack)
      • void craft(StackInfo[] stacks, int width, int height, WrappedPlayer player, StackInfo output)
    • the same ScriptBridge may be passed for multiple different recipes