Activator DROP

This activator works when the player throws an object or stack.

To create this activator, use the command:

/react add DROP <ActivatorId> [Item:<Item>]

Temporary placeholders operating in this activator:

PlaceholderDescription
%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

Examples

  1. We will forbid players to throw out any items and display the player's coordinates:
    /react add DROP dp
    /react add dp a CANCEL_EVENT true
    /react add dp a MESSAGE %droplocation%
    or
DROP:
  dp:
    item: ''
    actions:
    - CANCEL_EVENT=true
    - MESSAGE=%droplocation%
  1. We will forbid to throw out only the diamond block:
    /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
  1. Change the delay before the item is available to players:
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'