Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions docs/modules/gear/items.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,22 @@ _Examples_
Attribute modifiers can be applied to items in the same way they are applied to kits.
See [Attribute Kits](/docs/modules/gear/kits#attribute-modifier-kits-removable) for details.

Additionally, a `slot` can be specified, in which case the modifier will only be applied
when the item is in that slot. This must be an [armor or hand slot](/docs/reference/items/inventory).
Additionally, a `slot` can be specified, in which case the modifier will only be applied when the item is in that slot.
This must be an equipment slot or equipment slot group.
This is not available in Minecraft 1.8.

| Slot Value | Description |
|---|---|
| `any` | Any equipment slot, the default if not set. |
| `mainhand` ||
| `offhand` ||
| `hand` | Either main or off-hand. |
| `feet` ||
| `legs` ||
| `chest` ||
| `head` ||
| `armor` | Any armor piece. |
| `body` | Used for entities with no feet/legs/chest/head distinction, e.g. horses with armor. |

_Examples_

Expand All @@ -387,7 +401,8 @@ _Examples_

```xml
<item material="diamond spade">
<attribute slot="weapon.mainhand" operation="multiply" amount="2">generic.movementSpeed</attribute>
<!-- The slot value here is an example of an "inventory slot" -->
<attribute slot="mainhand" operation="multiply" amount="2">generic.movementSpeed</attribute>
</item>
```

Expand Down
2 changes: 2 additions & 0 deletions docs/modules/mechanics/filters.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ Player filters match for attributes of a certain player.
| `<alive/>` | Match if the player is participating and alive. | <span className="badge badge--primary">Dynamic</span> |
| `<dead/>` | Match if the player is participating and dead. | <span className="badge badge--primary">Dynamic</span> |
| `<can-fly/>` | Match if the player can fly. ||
| `<gliding/>` | Match if the player is gliding with an elytra. ||
| `<riptiding/>` | Match if the player is riptiding with a trident. ||
| `<effect/>` | Match if the player has a certain status effect. ||
| `<carrying><item material=""/></carrying>` | Match if the player is carrying an item. | <span className="badge badge--primary">Dynamic</span> |
| `<holding><item material=""/></holding>` | Match if the player is holding an item. | <span className="badge badge--primary">Dynamic</span> |
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/items/inventory.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import Materials from "../../../src/components/materials";

<div className="row">
<div className="col col--12">
<h3 id="inventory_slots">Inventory Slots</h3>
### Inventory Slots
</div>
<div className="col col--5">
<p><img alt="Inventory slots starting from 0 and ending at 35" src="/img/reference/inventory-slots.png" /></p>
<img alt="Inventory slots starting from 0 and ending at 35" src="/img/reference/inventory-slots.png"/>
</div>
<div className="col col--6">
<p>The <label>slot</label> attribute of items accepts the slot number which has been visualized to the left.</p>
<p>The <label>slot</label> attribute of items accepts the slot number which has been visualized in the figure.</p>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/misc/banners.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Banners are crafted by defining multiple pattern types in cascading order.
They can be given to the player in a kit using the [Banner Element](/docs/modules/gear/items#banners).

| Name | Bukkit Name | Result |
|---|---|---|
|---|---|:---:|
Comment thread
CoWinkKeyDinkInc marked this conversation as resolved.
| Field | BASE | <img width="35px" src="/img/reference/banners/base.png"/> |
| Bordure | BORDER | <img width="35px" src="/img/reference/banners/bordure.png"/> |
| Field Masoned | BRICKS | <img width="35px" src="/img/reference/banners/field-masoned.png"/> |
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"react-dom": "^19.2.5"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.9.2"
"@docusaurus/module-type-aliases": "^3.9.2",
"baseline-browser-mapping": "^2.9.19"
},
"browserslist": {
"production": [
Expand Down
Binary file modified static/img/modules/score-display-circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/modules/score-display-numerical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/modules/score-display-pipe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/modules/score-display-square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/reference/inventory-slots.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.