Changes
Page history
added Glider, DeathProtection and Consumable's ConsumeEffects
authored
Apr 12, 2025
by
Lxlp
Show whitespace changes
Inline
Side-by-side
Items/Items.md
View page @
dd66f3f1
...
@@ -223,6 +223,14 @@ MyCoolStick:
...
@@ -223,6 +223,14 @@ MyCoolStick:
-
obsidian
-
obsidian
```
```
#### Glider
Allows item to be used as an elytra.
Used to handle the
[
glider component
](
https://minecraft.wiki/w/Data_component_format/glider
)
of an item.
```
yaml
MyItem
:
Glider
:
true
```
#### Group
#### Group
Sets the group the item is in for
`/mm items browse`
.
Sets the group the item is in for
`/mm items browse`
.
```
yml
```
yml
...
@@ -336,14 +344,35 @@ SomeBook:
...
@@ -336,14 +344,35 @@ SomeBook:
Allows item to be eaten. Includes customizable animations and sounds.
Allows item to be eaten. Includes customizable animations and sounds.
Used to handle the
[
consumable component
](
https://minecraft.wiki/w/Data_component_format/consumable
)
of an item.
Used to handle the
[
consumable component
](
https://minecraft.wiki/w/Data_component_format/consumable
)
of an item.
```
yaml
```
yaml
Options
:
MyExampleItem
:
Consumable
:
Consumable
:
ConsumeSeconds
:
3
ConsumeSeconds
:
3
HasParticles
:
false
HasParticles
:
false
Animation
:
SPEAR
Animation
:
SPEAR
Sound
:
item.crossbow.quick_charge_3
Sound
:
item.crossbow.quick_charge_3
ConsumeEffects
:
-
potion{type=absorption;d=200}
-
randomteleport{radius=5}
-
removePotion{type=wither}
-
clearAllEffects
-
sound{sound=entity.ghast.scream}
```
```
#### DeathProtection
If present, this item protects the holder from dying by restoring a single health point, like a Totem of Undying does.
Used to handle the
[
death_protection component
](
https://minecraft.wiki/w/Data_component_format/death_protection
)
of an item.
```
yaml
MyTotemItem
:
DeathProtection
:
ConsumeEffects
:
# Same as Consumable's
-
potion{type=absorption;d=200}
-
randomteleport{radius=5}
-
removePotion{type=wither}
-
clearAllEffects
-
sound{sound=entity.ghast.scream}
```
#### Food
#### Food
Used to handle the
[
food component
](
https://minecraft.wiki/w/Data_component_format/food
)
of an item.
Used to handle the
[
food component
](
https://minecraft.wiki/w/Data_component_format/food
)
of an item.
Required
[
Consumable
](
/Items/Items#consumable
)
to be set in order to work
Required
[
Consumable
](
/Items/Items#consumable
)
to be set in order to work
...
...
...
...