All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Shield Lib

Shield Lib

by StellarWind22 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Shield Lib Banner


Shield Lib is a library that makes it easy to add custom shields with banner support, enchantments, custom shapes, & custom effects across Fabric & Neoforge without conflicts!

We also provide event hooks & modifier registries for shields and shield enchantments for creating custom effects with them by modifying blocking, disabling, movement, or cooldown.

Enchanting:

Custom Shapes:

Custom square shaped shield model in Blockbench, then in-game with globe banner pattern on it

Tooltips:

Vanilla shield with a new tooltip saying that when it's hit by an axe it will have 5 seconds of cooldown


Pages:

Documentation?

Architectury Fabric Neoforge

The example mod repo is a template repo you can use to quickly get started if your making a new mod. Although it isn't updated as frequently.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.8
Neoforge
8h ago 1
1.21.8
Fabric Quilt
8h ago 1
1.21.x
Neoforge
8h ago 1
1.21.x
Fabric Quilt
8h ago 1
1.21.x
Neoforge
8h ago 1
1.21.x
Fabric Quilt
8h ago 1
1.21.x
Neoforge
8h ago 1
1.21.x
Fabric Quilt
8h ago 1
1.21.x
Neoforge
8h ago 1
1.21.x
Fabric Quilt
8h ago 1
1.21.8
Neoforge
8h ago 1
1.21.8
Fabric Quilt
8h ago 1
1.21.8
Neoforge
8h ago 1
1.21.8
Fabric Quilt
8h ago 1
1.21.8
Fabric Quilt
8h ago 1
1.21.8
Neoforge
8h ago 1
1.21.8
Fabric Quilt
8h ago 1
1.21.8
Neoforge
8h ago 1
1.21.8
Neoforge
8h ago 1
1.21.8
Fabric Quilt
8h ago 1
1.21.x
Fabric
8h ago 1
1.21.5
Fabric
8h ago 1
1.21.6
Fabric
8h ago 1
1.21.5
Fabric
8h ago 1
1.21.4
Fabric
8h ago 1
1.21.x
Fabric
8h ago 1
1.21.x
Fabric
8h ago 1
1.20.x
Fabric
8h ago 1
1.20.x
Fabric
8h ago 1
1.20.x
Fabric
8h ago 1
1.17.x
Fabric
8h ago 1
1.18.x
Fabric
8h ago 1
1.19.x
Fabric
8h ago 1
1.19.x
Fabric
8h ago 1
1.20.x
Fabric
8h ago 1
1.20.x
Fabric
8h ago 1
1.19.x
Fabric
8h ago 1
1.18.x
Fabric
8h ago 1
1.17.x
Fabric
8h ago 1
1.19.x
Fabric
8h ago 1
1.17.x
Fabric
8h ago 1
1.19.x
Fabric
8h ago 1
1.18.x
Fabric
8h ago 1
1.19.3
Fabric
8h ago 1
1.19.3
Fabric
8h ago 1
1.19.3
Fabric
8h ago 1
1.19.3
Fabric
8h ago 1
1.19.x
Fabric
8h ago 1
1.19.x
Fabric
8h ago 1
1.18.2
Fabric
8h ago 1
1.17.x
Fabric
8h ago 1
1.16.x
Fabric
8h ago 1
1.15.x
Fabric
8h ago 1
1.14.x
Fabric
8h ago 1
1.18
Fabric
8h ago 1
1.15.2
Fabric
8h ago 1
1.16.5
Fabric
8h ago 1
1.17.1
Fabric
8h ago 1
1.15.2
Fabric
8h ago 1
1.17.1
Fabric
8h ago 1
1.16.5
Fabric
8h ago 1
1.17.1
Fabric
8h ago 1
1.17.1
Fabric
8h ago 1
1.17.1
Fabric
8h ago 1
21w05b
Fabric
8h ago 1
1.16.5
Fabric
8h ago 1
1.15.2
Fabric
8h ago 1
1.14.4
Fabric
8h ago 1
21w05b
Fabric
8h ago 1
1.16.5
Fabric
8h ago 1
1.15.2
Fabric
8h ago 1
1.14.4
Fabric
8h ago 1
1.16.5
Fabric
8h ago 1
1.15.2
Fabric
8h ago 1
1.14.4
Fabric
8h ago 1
## Whats Changed:
  • Changes**:
  • Tweaked the default Targe Shield model to be easier to make banner patterns for.
  • Fixes**:
  • Added missing null check when checking for shield enchantments.
## Whats Changed:
  • Changes**:
  • Tweaked the default Targe Shield model to be easier to make banner patterns for.
  • Fixes**:
  • Added missing null check when checking for shield enchantments.
## Whats Changed
  • FabricShieldLib is now ShieldLib
  • Near-Complete rewrite of the library
  • Heavily reduced class inheritance(pretty much everything is an interface).
  • Library has it's own internal registries for modifying shield behavior.
  • Support for NeoForge
  • Support for Quilt(As Long as it doesn't cause issues)
  • New shield tooltips showing speed while blocking.
  • Supports custom shield shapes(with banners)
  • Had to remove Russian & Ukrainian translation(hopefully I'll get it translated again).
  • Added Norwegian, Portuguese, & Simplified Chinese translations.
  • Added pre-made shield types for modders to use:
  • Tower(Vanilla Style)
  • Buckler
  • Heater
  • Targe
  • Removed FabricASM dependency (Manningham Mills)
  • Added several new event hooks
  • BLOCK
  • BLOCK_FAIL
  • CAN_BLOCK
  • ATTACK
  • COLLIDE
  • DISABLE

## Whats Changed
  • FabricShieldLib is now ShieldLib
  • Near-Complete rewrite of the library
  • Heavily reduced class inheritance(pretty much everything is an interface).
  • Library has it's own internal registries for modifying shield behavior.
  • Support for NeoForge
  • Support for Quilt(As Long as it doesn't cause issues)
  • New shield tooltips showing speed while blocking.
  • Supports custom shield shapes(with banners)
  • Had to remove Russian & Ukrainian translation(hopefully I'll get it translated again).
  • Added Norwegian, Portuguese, & Simplified Chinese translations.
  • Added pre-made shield types for modders to use:
  • Tower(Vanilla Style)
  • Buckler
  • Heater
  • Targe
  • Removed FabricASM dependency (Manningham Mills)
  • Added several new event hooks
  • BLOCK
  • BLOCK_FAIL
  • CAN_BLOCK
  • ATTACK
  • COLLIDE
  • DISABLE

  • Finished targe shield banner pattern set.
  • Added Simplified Chinese translation.
  • Added Brazilian Portuguese translation.
  • Finished targe shield banner pattern set.
  • Added Simplified Chinese translation.
  • Added Brazilian Portuguese translation.
Additions:
  • Bucklers now don't block arrows by default.
  • Custom tag-based cooldowns now registerable with mod.
  • Reorganized package structure.
  • Added hit_spiked_shield & collide_spiked_shield damage types.
  • Spiked shields do damage on entity collision now.
  • added CAN_BLOCK BLOCK_FAIL BLOCK ATTACK ShieldEvents.
  • Norwegian Bokmal & French translations working.
Additions:
  • Bucklers now don't block arrows by default.
  • Custom tag-based cooldowns now registerable with mod.
  • Reorganized package structure.
  • Added hit_spiked_shield & collide_spiked_shield damage types.
  • Spiked shields do damage on entity collision now.
  • added CAN_BLOCK BLOCK_FAIL BLOCK ATTACK ShieldEvents.
  • Norwegian Bokmal & French translations working.
### Changes:
  • Added targe shield type.
  • Architectury is now included in .jar
### Changes:
  • Added targe shield type.
  • Architectury is now included in .jar
### Changes:
  • reworked how I build the .jar so it should run outside of my IDE lol.
### Changes:
  • reworked how I build the .jar so it should run outside of my IDE lol.
### Changes:
  • vanilla shields are now tower shields.
  • Added ShieldInformation component
  • Added spiked variants of all shield types
  • Remade config it will need to be translated again :(
### Changes:
  • vanilla shields are now tower shields.
  • Added ShieldInformation component
  • Added spiked variants of all shield types
  • Remade config it will need to be translated again :(
### Additions:
  • Added heater shield shape
  • Added model & textures for heater shields
  • Made all 48 vanilla banner patterns for heater shields
### Additions:
  • Added heater shield shape
  • Added model & textures for heater shields
  • Made all 48 vanilla banner patterns for heater shields
### Changes:
  • Fixed version of mod being broken...
  • Mods can now register ShieldCooldownModifiers
  • Mods can now register ShieldMovementModifiers
  • banner_shield is now vanilla_shield everywhere.
### Changes:
  • Fixed version of mod being broken...
  • Mods can now register ShieldCooldownModifiers
  • Mods can now register ShieldMovementModifiers
  • banner_shield is now vanilla_shield everywhere.
### Complete rebuild of library!
  • Custom shield shapes /w banners now supported.
  • Enchantments fully working in 2.0
  • Supports fabric AND neoforge!!
### Complete rebuild of library!
  • Custom shield shapes /w banners now supported.
  • Enchantments fully working in 2.0
  • Supports fabric AND neoforge!!
## What's Changed

  • Internal library cleanup/optimization
  • Streamlined process for adding banner support to shields (fully data-driven now)
  • Removed FabricShield interface, an item is now classified as a shield if it contains BLOCKS_ATTACKS
  • Two new tags - supports_banner and no_tooltip, replacing the previous interface options




Thanks to @rikka0w0 for major work on this release!
## What's Changed

  • Internal library cleanup/optimization
  • Streamlined process for adding banner support to shields (fully data-driven now)
  • Removed FabricShield interface, an item is now classified as a shield if it contains BLOCKS_ATTACKS
  • Two new tags - supports_banner and no_tooltip, replacing the previous interface options


Thanks to @rikka0w0 for major work on this release!
## What's Changed
  • Port to 1.21.5 by [@rikka0w0](https://github.com/rikka0w0) in [https://github.com/StellarWind22/Fabric-Shield-Lib/pull/206](https://github.com/StellarWind22/Fabric-Shield-Lib/pull/206)
  • Removed \FabricBannerShieldItem \- all shields are now made with \FabricShieldItem\ , and components dictate further functionality
  • The presence or lack of \FabricShieldModelComponent \determines banner functionality
  • Shields can still be made with previous constructors, however, new constructors are available for the usage of the \BLOCKS\_ATTACKS\ component.
  • Several component helpers have been added to \FabricShieldUtils\ - the base Vanilla component as a constant/reference and methods that can take in a component and change just one value, depending on the method. These methods will later be wrapped into a builder class.
  • Migrated to \BLOCKS\_ATTACKS\ rather than \c:shields\ for detecting shields, such as for universal disable
  • New \FabricShieldUtils\ methods added with vanilla & default shield \ItemSettings\.
  • Updated dependencies

\*Full Changelog\*: [https://github.com/StellarWind22/Fabric-Shield-Lib/compare/v1.8.0-1.21.4…v1.8.1-1.21.5](https://github.com/StellarWind22/Fabric-Shield-Lib/compare/v1.8.0-1.21.4…v1.8.1-1.21.5)
## What's Changed
  • Internal optimization
  • getCooldownTicks has itemstack context now
  • Model predicates must be made in .json per each shield in assets/modid/items
  • Builtinitemrendererregistry is has been migrated to a data component
  • When creating a banner shield, users add their SpriteIdentifiers and the entitymodelayer into the custom component

## New Contributors

  • Thanks to New mixin @imverybad on discord for providing a necessary mixin!

## What's Changed

## New Contributors

## What's Changed


## What's Changed


Shield Lib Icon
Download Shield Lib
Select game version
Select platform