Shield
Parameters
The number of ticks that right-click must be held before successfully blocking attacks.
A multiplier that is applied to the number of ticks that the item will be on cooldown for when attacked by a disabling attack.
A damage type tag containing the damage types that bypass the shield. Can be null
if no damage types bypass the shield.
The sound that is played when the shield successfully blocks an attack. Can be null
if no sound should be played.
The sound that is played when the shield is disabled by a disabling attack. Can be null
if no sound should be played.
Constructors
Properties
The base data components that every item with this ItemBehavior has.
The number of ticks that right-click must be held before successfully blocking attacks.
The sound that is played when the shield successfully blocks an attack.
The key of the sound that is played when the shield successfully blocks an attack.
A damage type tag containing the damage types that bypass the shield.
The NamespacedCompound that every new ItemStack of an item with this ItemBehavior has by default.
A multiplier that is applied to the number of ticks that the item will be on cooldown for when attacked by a disabling attack.
The sound that is played when the shield is disabled by a disabling attack.
The key of the sound that is played when the shield is disabled by a disabling attack.
The vanilla material properties that an item with this ItemBehavior requires.
Functions
Creates a string representation of this ItemBehavior and its data in itemStack.