Minecraft:Data component format/blocks attacks: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: new page from Minecraft |
Sync: updated from Minecraft |
||
| Line 4: | Line 4: | ||
*** {{nbt|float|block_delay_seconds}}: The amount of time (in seconds) that {{control|use}} must be held before successfully blocking attacks. Defaults to {{cd|0}}. | *** {{nbt|float|block_delay_seconds}}: The amount of time (in seconds) that {{control|use}} must be held before successfully blocking attacks. Defaults to {{cd|0}}. | ||
*** {{nbt|float|disable_cooldown_scale}}: The multiplier applied to the cooldown time for the item when attacked by a disabling attack (the multiplier for {{nbt|float|disable_blocking_for_seconds}} on the [[Minecraft:Data component format#weapon|{{cd|minecraft:weapon}}]] component). If set to {{cd|0}}, this item can never be disabled by attacks. Defaults to {{cd|1}}. | *** {{nbt|float|disable_cooldown_scale}}: The multiplier applied to the cooldown time for the item when attacked by a disabling attack (the multiplier for {{nbt|float|disable_blocking_for_seconds}} on the [[Minecraft:Data component format#weapon|{{cd|minecraft:weapon}}]] component). If set to {{cd|0}}, this item can never be disabled by attacks. Defaults to {{cd|1}}. | ||
*** {{nbt|list|damage_reductions}}: A set of rules for how much and what kinds damage should be blocked in a given attack. Defaults to <code>[{base:0,factor:1,horizontal_blocking_angle:90}]</code> which blocks all damage within a 90 degree angle. | *** {{nbt|list|damage_reductions}}: A set of rules for how much and what kinds damage should be blocked in a given attack. Defaults to <code>[{base:0,factor:1,horizontal_blocking_angle:90}]</code> which blocks all damage within a 90-degree angle. | ||
**** {{nbt|compound}}: A damage reduction field | **** {{nbt|compound}}: A damage reduction field | ||
***** {{nbt|string}}{{nbt|list|type}}: {{json_ref|damage type|tag=1}} to block. Defaults to all damage types. | ***** {{nbt|string}}{{nbt|list|type}}: {{json_ref|damage type|tag=1}} to block. Defaults to all damage types. | ||
Latest revision as of 12:05, 10 November 2026
- Template:Nbt: When present, this item can be used like a shield to block attacks to the holding player.
- Template:Nbt: The amount of time (in seconds) that Template:Control must be held before successfully blocking attacks. Defaults to Template:Cd.
- Template:Nbt: The multiplier applied to the cooldown time for the item when attacked by a disabling attack (the multiplier for Template:Nbt on the [[Minecraft:Data component format#weapon|Template:Cd]] component). If set to Template:Cd, this item can never be disabled by attacks. Defaults to Template:Cd.
- Template:Nbt: A set of rules for how much and what kinds damage should be blocked in a given attack. Defaults to
[{base:0,factor:1,horizontal_blocking_angle:90}]which blocks all damage within a 90-degree angle.- Template:Nbt: A damage reduction field
- Template:NbtTemplate:Nbt: Template:Json ref to block. Defaults to all damage types.
- Template:Nbt: The constant amount of damage to be blocked. This is a required field.
- Template:Nbt: The fraction of the dealt damage to be blocked. This is a required field.
- Template:Nbt: strictly positive float — The maximum angle between the users facing direction and the direction of the incoming attack to be blocked. Defaults to Template:Cd.
- Template:Nbt: A damage reduction field
- Template:Nbt: Controls how much damage should be applied to the item from a given attack.
- Template:Nbt: The minimum amount of damage dealt by the attack before item damage is applied to the item. Defaults to Template:Cd.
- Template:Nbt: The constant amount of damage applied to the item, if threshold is passed. Defaults to Template:Cd.
- Template:Nbt: The fraction of the dealt damage that should be applied to the item, if threshold is passed. Defaults to Template:Cd.
- Template:NbtTemplate:Nbt: Template:Json ref to play when an attack is successfully blocked. Defaults to none.
- Template:NbtTemplate:Nbt: Template:Json ref to play when the item goes on its disabled cooldown due to an attack. Defaults to none.
- Template:Nbt: a damage type Minecraft:tag with Template:Cd of Minecraft:damage types that bypass the blocking. Defaults to none.
- Template:Nbt: When present, this item can be used like a shield to block attacks to the holding player.