-
Notifications
You must be signed in to change notification settings - Fork 15
Location Format
fromgate edited this page Jun 26, 2017
·
3 revisions
Location is one of most useful parameter in ReActions. This parameter is widely used in the plugin and whenever it occurs, it can be used as follows:
Values | Description |
---|---|
WorldName,X,Y,Z |
WorldName - name of world, X, Y, Z - coordinates. Example: world,100,64,-100
|
WorldName,X,Y,Z,Yaw,Pitch |
WorldName - name of world, X, Y, Z - coordinates, Yaw, Pitch - definition of view direction Example: world,100,64,-100,320.10,23.15
|
loc:<WorldName,X,Y,Z[,Yaw,Pitch]> [add-vector:<X,Y,Z>] |
WorldName - name of world, X, Y, Z - coordinates, Yaw, Pitch - definition of view direction Addition parameter: · add-vector:<X,Y,Z> — allows to modify result of location Example: · loc:world,100,64,-100,320.10,23.15 · loc:world,100,64,-100 add-vector:0,10,0 — will return location world,100,74,-100
|
loc:<WorldName,X,Y,Z> radius:<Radius> [land:<true / false>] [add-vector:<X,Y,Z>] |
Random location around the defined block. Max distance of random locations is limited by value. Additional parameters: · land:<true / false> — forces to find location in point where player can stay (solid block with two blocks above it)· add-vector:<X,Y,Z> — allows to modify result of location |
region:[WorldName.]<RegionName> [land:<ture | false>] [add-vector:<X,Y,Z>] |
Random location in defined WorldGuard region Additional parameters: · land:<ture | false> — forces to find location in point where player can stay (solid block with two blocks above it)· add-vector:<X,Y,Z> — allows to modify result of location |
loc1:<WorldName,X,Y,Z> loc2:<WorldName,X,Y,Z> [land:<ture | false>] [add-vector:<X,Y,Z>]
|
Random location in area defined by too point. Additional parameters: · land:<ture | false> — forces to find location in point where player can stay (solid block with two blocks above it)· add-vector:<X,Y,Z> — allows to modify result of location |
<LocName> |
Locations could be saved at location.yml file using /react loc command. To link your activator or actions to this location, you just need to use stored location name. |
Some activators creates temporary placeholder, which contains a location value. For example, activator
MOB_CLICK creates placeholder %moblocation%
, which points to clicked mob location.
For example, if you need to perform something in location higher than mob location you can define this location with this string: loc:%moblocation% add-vector:0,5,0
Or, may be, you need a random location around clicked mob: loc:%moblocation% radius:10
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
- Команды и пермишены
- Активаторы
- Флаги
- Действия
- Таймеры
- Меню
- Форматы данных
- Конфигурация