items:item_events
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
items:item_events [2024/04/29 18:24] – make empty lines consistent errorcraft | items:item_events [2024/05/07 22:51] (current) – split item events to make room for tables errorcraft | ||
---|---|---|---|
Line 5: | Line 5: | ||
With item events you can act upon something happening to an item yourself. | With item events you can act upon something happening to an item yourself. | ||
All events and their handlers are found in a list in the '' | All events and their handlers are found in a list in the '' | ||
- | Below is a table with all item events | + | Below is a list with all item events |
Line 37: | Line 37: | ||
===== Events ===== | ===== Events ===== | ||
- | ^ | + | This is a list with all item events describing when they occur. |
- | | '' | + | It also contains a table with its appropriate [[actions: |
- | | '' | + | |
- | | '' | + | |
- | | '' | + | ==== minecraft: |
- | | '' | + | Occurs when a player used the item. |
- | | '' | + | |
- | | '' | + | | ^ |
- | | '' | + | ^ Entity |
- | | '' | + | ^ Position |
- | | '' | + | ^ Item Stack | | The item stack held by the player. | |
- | | '' | + | |
- | | '' | + | ---- |
- | | '' | + | |
- | | '' | + | ==== minecraft: |
- | | '' | + | Occurs when a player stopped using the item before its use duration was reached. |
- | | '' | + | |
- | | '' | + | | ^ Parameter |
+ | ^ Entity | ||
+ | ^ Position | ||
+ | ^ Item Stack | | The item stack held by the player. | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when a player used the item for its use duration. | ||
+ | |||
+ | | ^ Parameter | ||
+ | ^ Entity | ||
+ | ^ Position | ||
+ | ^ Item Stack | | The item stack held by the player. | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when the item with the [[items: | ||
+ | Runs after [[#minecraft: | ||
+ | |||
+ | | ^ Parameter | ||
+ | ^ Entity | ||
+ | ^ Position | ||
+ | ^ Item Stack | | The item stack about to be consumed by the player. | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when the item with the [[items: | ||
+ | Runs before | ||
+ | |||
+ | | ^ Parameter | ||
+ | ^ Entity | ||
+ | ^ Position | ||
+ | ^ Item Stack | | The item stack about to be eaten by the player. | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when the item is used on a block after its original usage on the block failed. | ||
+ | |||
+ | | ^ Parameter | ||
+ | ^ Entity | ||
+ | ^ Position | ||
+ | ^ ::: | '' | ||
+ | ^ Side | | The side of the block the player used the item stack on. | | ||
+ | ^ Item Stack | | The item stack used on the block. | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when the item is used to break a block. | ||
+ | |||
+ | | ^ Parameter | ||
+ | ^ Entity | ||
+ | ^ Position | ||
+ | ^ ::: | '' | ||
+ | ^ Item Stack | | The item stack used to break the block. | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when a block from the item with the [[items: | ||
+ | |||
+ | | ^ Parameter | ||
+ | ^ Entity | ||
+ | ^ Position | ||
+ | ^ ::: | '' | ||
+ | ^ Item Stack | | The item stack used to place the block. | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when the item it used on an entity after its original usage on the entity failed. | ||
+ | |||
+ | | ^ Parameter | ||
+ | ^ Entity | ||
+ | ^ ::: | '' | ||
+ | ^ Position | ||
+ | ^ ::: | '' | ||
+ | ^ Item Stack | | The item stack used on the entity. | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when the item is used to hit an entity. | ||
+ | |||
+ | | ^ Parameter | ||
+ | ^ Entity | ||
+ | ^ ::: | '' | ||
+ | ^ Position | ||
+ | ^ ::: | '' | ||
+ | ^ Item Stack | | The item stack used to hit the entity with. | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when the item placed an entity. | ||
+ | |||
+ | | ^ Parameter | ||
+ | ^ Entity | ||
+ | ^ ::: | '' | ||
+ | ^ Position | ||
+ | ^ ::: | '' | ||
+ | ^ Side | | The side of the block the item stack was used on to spawn the entity. | | ||
+ | ^ Item Stack | | The item stack used to spawn the entity. | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when the item with the [[items: | ||
+ | The specific context depends on the origin the item stack was damaged from, but the item stack in the context is always the item stack that was damaged. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when the item with the [[items: | ||
+ | Runs after the item stack size is decremented, | ||
+ | The specific context depends on the origin the item stack was broken from, but the item stack in the context is always the item stack that was broken. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when the item with the [[items: | ||
+ | Runs before | ||
+ | |||
+ | | ^ Parameter | ||
+ | ^ Entity | ||
+ | ^ Position | ||
+ | ^ ::: | '' | ||
+ | ^ Item Stack | | The item stack used as a tool. | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when the item with the [[items: | ||
+ | Runs before | ||
+ | |||
+ | | ^ Parameter | ||
+ | ^ Entity | ||
+ | ^ ::: | '' | ||
+ | ^ Position | ||
+ | ^ ::: | '' | ||
+ | ^ Item Stack | | The item stack used as a weapon. | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when the item with the [[items: | ||
+ | Runs before | ||
+ | |||
+ | | ^ Parameter | ||
+ | ^ Entity | ||
+ | ^ Position | ||
+ | ^ Item Stack | | The item stack to be equipped. | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== minecraft: | ||
+ | Occurs when the item with the [[items: | ||
+ | |||
+ | | ^ Parameter | ||
+ | ^ Entity | ||
+ | ^ ::: | '' | ||
+ | ^ Position | ||
+ | ^ ::: | '' | ||
+ | ^ Item Stack | | The item stack that was thrown. | |
items/item_events.1714415051.txt.gz · Last modified: 2024/04/29 18:24 by errorcraft