Skip to main content

๐Ÿ’Ž ItemsAdder

This page covers the compatibility with ItemsAdder.

Actionsโ€‹

Set Blockโ€‹

Places a specific ItemsAdder block at a designated location.

Syntax: itemsAdderBlockAt <id> <location>

Set Furnitureโ€‹

Places specific ItemsAdder furniture at a designated location.

Syntax: itemsAdderFurnitureAt <id> <location>

ParameterSyntaxDefault ValueExplanation
idnamespace:idnoneThe unique identifier (ID) of the block or furniture to be spawned.
locationLocationnoneThe coordinates where the object will be placed
Example
actions:
setIABlock: itemsAdderBlockAt iasurvival:ruby_block 0;-60;0;world
setIAFurniture: itemsAdderFurnitureAt iaalchemy:chair 0;-60;0;world

Play Animationโ€‹

Plays a specific animated title on the player's screen.

Syntax: itemsAdderPlayAnimation <id>

Example
action:
playIAAnimation: itemsAdderPlayAnimation animationID

Conditionsโ€‹

Check Blockโ€‹

Checks if a specific ItemsAdder block exists at a designated location.

Syntax: itemsAdderBlock <id> <location>

Check Furnitureโ€‹

Checks if a specific ItemsAdder furniture exists at a designated location.

Syntax: itemsAdderFurniture <id> <location>

ParameterSyntaxDefault ValueExplanation
idnamespace:idnoneThe unique identifier (ID) of the block or furniture to be spawned.
locationLocationnoneThe coordinates where the object will be placed
Example
conditions:
isIABlock: itemsAdderBlock iasurvival:ruby_block 0;-60;0;world
isIAFurniture: itemsAdderFurniture iaalchemy:chair 0;-60;0;world

Objectivesโ€‹

Blockโ€‹

Triggers when a player interacts with ItemsAdder block (Place, Break, or Interact).

Syntax:

  • itemsAdderBlockPlace <id> [amount] [isCancelled] [location] [range]
  • itemsAdderBlockBreak <id> [amount] [isCancelled] [location] [range]
  • itemsAdderBlockInteract <id> [amount] [isCancelled] [location] [range]

Furnitureโ€‹

Triggers when a player interacts with ItemsAdder furniture (Place, Break, or Interact).

Syntax:

  • itemsAdderFurniturePlace <id> [amount] [isCancelled] [location] [range]
  • itemsAdderFurnitureBreak <id> [amount] [isCancelled] [location] [range]
  • itemsAdderFurnitureInteract <id> [amount] [isCancelled] [location] [range]
ParameterSyntaxDefault ValueExplanation
idnamespace:idnoneThe unique identifier (ID) of the block or furniture to be spawned.
amountamount:Int1The number of times the action must be performed.
locationlocation:LocationeverywhereThe specific location where the block or furniture must be located.
rangerange:Double0The maximum distance (in blocks) from the location within which the action is counted.
Example
objectives:
placeRubyBlock: itemsAdderBlockPlace iasurvival:ruby_block
breakEndTable: itemsAdderFurnitureBreak iaalchemy:chair amount:2
useLamp: itemsAdderFurnitureInteract iaalchemy:lamp isCancelled:true

Itemsโ€‹

ItemsAdder usage is integrated to the Items system and thus used for events and conditions.

In addition, you can also add quest-item argument to tag them as "QuestItem".

Example
items:
forestTrident: ItemsAdder forest_trident
tableLamp: ItemsAdder table_lamp quest-item
conditions:
hasForestTrident: hand forestTrident
actions:
giveTableLamp: give tableLamp:3