Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Allows an item to deal damage to all entities detected in a straight line along the user's view vector. Items with this component cannot destroy blocks, as the attack action always takes priority, regardless of what the user is looking at.
Note
This item requires a format version of at least 1.21.130.
Item Piercing Weapon Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| creative_reach | not set | Creative Reach item | Defines the reach used when the user is in Creative Mode. Defaults to "reach" if unspecified. |
| hitbox_margin | 0 | Decimal number | Added tolerance to the view vector raycast for detecting entity collisions. |
| reach | {"max":3,"min":0} | Reach item | Defines the range (in blocks) along the user's view vector where entities can be hit. |
reach
Defines the range (in blocks) along the user's view vector where entities can be hit. Only targets within this distance are considered. Block collisions between the user and target block damage and its effects.
Legacy FloatRange
Legacy FloatRange Properties
JSON path: creative_reach
| Name | Default Value | Type | Description |
|---|---|---|---|
| max | 0 | Decimal number | |
| min | 0 | Decimal number |