This activator works when the player throws an object or stack.
To create this activator, use the command:
/react add DROP <ActivatorId> [Item:
<Item>
]
Placeholder | Description |
---|---|
%droplocation% | Shows the coordinates of the player when he tried to throw something away. |
%pickupDelay% | Delay (in ticks) before this object will be available for capture by players. If you change this temporary variable by using the action VAR_TEMP_SET, then the delay will change. |
%item% | the item that is thrown out. If you change this temporary variable using the VAR_TEMP_SET action, the drop will also change |
/react add DROP dp
/react add dp a CANCEL_EVENT true
/react add dp a MESSAGE %droplocation%
DROP:
dp:
item: ''
actions:
- CANCEL_EVENT=true
- MESSAGE=%droplocation%
/react add drop dp2 item:{type:diamond_block}
/react add dp2 a CANCEL_EVENT true
DROP:
dp2:
item: type:diamond_block
actions:
- CANCEL_EVENT=true
DROP:
dp3:
item: type:gold_block
actions:
- MESSAGE=player:all &6&lРаздача! &a(%droplocation%)
- VAR_TEMP_SET=id:pickupDelay value:200
- 'message=&eThe gold block will be accessible through &c%CALC:% pickupDelay%/20% &eseconds'