Shield
constructor(blockDelay: Provider<Int>, disableCooldownScale: Provider<Double>, bypassedBy: Provider<TagKey<DamageType>?>, blockSound: Provider<Key?>, disableSound: Provider<Key?>)
Parameters
blockDelay
The number of ticks that right-click must be held before successfully blocking attacks.
disableCooldownScale
A multiplier that is applied to the number of ticks that the item will be on cooldown for when attacked by a disabling attack.
bypassedBy
A damage type tag containing the damage types that bypass the shield. Can be null
if no damage types bypass the shield.
blockSound
The sound that is played when the shield successfully blocks an attack. Can be null
if no sound should be played.
disableSound
The sound that is played when the shield is disabled by a disabling attack. Can be null
if no sound should be played.