ItemsAdderπ
Required ItemsAdder version: 4.0.10 or above
Itemsπ
ItemsAdder usage is integrated to the Items system and thus used for actions and conditions.
In addition, you can also add quest-item argument to tag them as "QuestItem".
Example
items:
ruby: "itemsAdder iasurvival:ruby"
sword: "itemsAdder iaalchemy:mysterious_sword quest-item"
conditions:
hasSword: "item sword"
actions:
giveRuby: "give ruby:3"
Conditionsπ
Check for block itemsAdderBlockπ
Check if the ItemsAdder block is at a location.
| Parameter | Syntax | Default Value | Explanation |
|---|---|---|---|
| itemId | string | Identifier of the block to check. | |
| location | ULF | The location to check the block at. |
Example
conditions:
iaBlock: "itemsAdderBlock itemsadder:ruby_ore 40;72;3;world"
Actionsπ
Place block itemsAdderBlockπ
Changes the block at the given position.
| Parameter | Syntax | Default Value | Explanation |
|---|---|---|---|
| itemId | string | Identifier of the block to place. | |
| location | ULF | The location to place the block at. |
Example
actions:
iaSetBlock: "itemsAdderBlock itemsadder:ruby_ore 100;200;300;world"
Play totem animation itemsAdderAnimationπ
Plays an ItemsAdder totem animation.
| Parameter | Syntax | Default Value | Explanation |
|---|---|---|---|
| animationId | string | Animation name to play. |
Example
actions:
iaPlayAnimation: "itemsAdderAnimation totem1"
Objectivesπ
Break Block itemsAdderBlockBreakπ
To complete this objective player must break specified amount of ItemsAdder blocks.
You can add a notify keyword if you want to send a notification to players whenever the objective progresses.
| Parameter | Syntax | Default Value | Explanation |
|---|---|---|---|
| itemId | string | Identifier of the block to break. | |
| amount | amount:number | 1 | Amount of blocks to break. |
Example
objectives:
iaBreak: "itemsAdderBlockBreak itemsadder:ruby_ore amount:20 notify:5"
Place Block itemsAdderBlockPlaceπ
To complete this objective player must place specified amount of ItemsAdder blocks.
You can add a notify keyword if you want to send a notification to players whenever the objective progresses.
| Parameter | Syntax | Default Value | Explanation |
|---|---|---|---|
| itemId | string | Identifier of the block to place. | |
| amount | amount:number | 1 | Amount of blocks to place. |
Example
objectives:
iaPlace: "itemsAdderBlockPlace iasurvival:restoration_table"