Skip to content

v1.0.0

Choose a tag to compare

@TheCodingFlygon TheCodingFlygon released this 06 May 04:08
· 8 commits to main since this release
5ba6dfc

Initial release

Added the following functionality:

  • onUse: runs on item use when in mainhand (item must have consumable component with consume_seconds:2147483647,animation:"block")
  • onShiftUse: runs on item use when in mainhand while sneaking (same requirements as onUse)
  • onAttack: runs upon successfully attacking a mob when in mainhand
  • onBlock: runs upon successfully blocking damage when held (item must have blocks_attack component (1.21.5+) or be a shield)
  • onDamage: runs upon taking damage from a mob when held or worn
  • projectile.onHitMob: runs when a thrown or shot projectile from this item hits a mob
  • projectile.onHitBlock: runs when a thrown or shot projectile from this item hits a block
  • onHold: runs every tick when held or worn

Full Changelog: https://github.com/TheCodingFlygon/Cobalt-Core/commits/1.0.0