-
Notifications
You must be signed in to change notification settings - Fork 15
Activator DROP
MaxDikiy edited this page Sep 6, 2017
·
5 revisions
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 |
- 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%
- 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
- 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'
Links:
Download | Support | Twitter | VK | MinecraftMain Blog
© 2017, fromgate
http://reactions.fromgate.me
http://reactions.fromgate.ru
- Commands and Permission
- Activators
- Flags
- Actions
- Timers
- Menus
- Data formats
- Configuration
- Команды и пермишены
- Активаторы
- Флаги
- Действия
- Таймеры
- Меню
- Форматы данных
- Конфигурация