Lib Block Attributes

Pure library mod: used by other mods to allow for exchanging items and fluids between blocks.

File Details

[1.16.2/1.16.3] 0.8.2

  • R
  • Oct 6, 2020
  • 429.56 KB
  • 31.3K
  • 1.16.3+1
  • Fabric

File Name

libblockattributes-all-0.8.2.jar

Supported Versions

  • 1.16.3
  • 1.16.2

Curse Maven Snippet

Fabric

modImplementation "curse.maven:libblockattributes-317995:3073648"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Changes:

  • Added FluidContainerRegistry, which can be used to easily allow custom buckets to be filled with a custom fluid from an empty bucket, without needing complex stuff.
    • This is intended to replace IBucketItem, which is now deprecated.
  • Added "FluidKeyCustomiser", for custom Fluid instances to implement to customise the implicit FluidKey that gets created for them.
  • Added FluidKey.luminosity, to allow tanks to emit light based on the fluid's light. (Lava uses 15).
  • Gave the empty fluid a proper name.
  • Added a new field to FluidKey: exactFilter, which is an ExactFluidFilter of that fluid key.
  • Optimised AttributeList.addAll when searching the entire block in a specific direction.
  • Added fluid compat for cauldrons. (However you can only insert or extract 1/3 of a bucket at a time, so it's not always possible to insert into them with pipes).

Bug Fixes:

  • Fixed FluidKeys static init loading worldgen early.
  • Fixed various tooltip issues with FluidUnits.
  • Fixed FluidAmount.toLong() rounding incorrectly.
  • Fixed ItemInvUtil.move reusing the insertion filter after modifying the inventory.
  • Fixed FluidVolume.equals not considering two empty fluids of different classes to be equal.