Skip to content
fromgate edited this page Jun 25, 2017 · 3 revisions

Remove specified item from player's hand.

Optionally may be removed the specified amount of items.

ITEM_REMOVE <item>

Parameter Parameter value Description
<item> <Item> Item, that should be removed from player's hand.
You can fully define item using item format.

Temporary placeholders provided by this action

Placeholder Description
%item_str% Description of item, that will composed from item's name, data and amount.
Examples:
1. ITEM_REMOVE type:DIAMOND amount:3 data:5 name:{Power crystal}
For this action placeholder will return: "Power crystal*3"
2. ITEM_REMOVE type:DIAMOND amount:3 data:5
For this action placeholder will return: "DIAMOND:5*3"
3. ITEM_REMOVE type:DIAMOND_SWORD name:{Sword of fromgate}
For this action placeholder will return: "Sword of fromgate"
%item% Text representation of item that was in player hands before removal, that could be use to "create" another items using actions ITEM_GIVE, ITEM_DROP, etc.
Examples:
1. ITEM_REMOVE type:DIAMOND amount:3 data:5 name:{Power crystal}
For this action placeholder will return: "type:DIAMOND amount:3 data:5 name:{Power crystal}"
2. ITEM_REMOVE type:DIAMOND amount:3 name:{Power .*}
For this action placeholder will return: "type:DIAMOND amount:3 data:5 name:{Power crystal}"
Clone this wiki locally