Backstab
Needed things:
- PlaceholderAPI
- Math expansion of PlaceholderAPI -> /papi ecloud download Math + /papi reload
First create your item and then the activator you want the condition of "backstab"
The activator MUST BE related to an entity/target
If you plan to use this condition of an activator PLAYER_PLACE_BLOCK, it won't make sense, since there is no entity related, same goes for activator PLAYER_RIGHT_CLICK, only activators with entities or players involved.
Then go to placeholders conditions
Add a condition PLAYER_NUMBER

In PART1 we will be comparing the two directions of the player and target/entity
- PART1: %math_1_ABS((%player_yaw%)-(%entity_yaw%))%
- INFERIOR OR EQUALS
- PART2: 90
If you are working with target, change instead of %entity_yaw% -> %target_yaw%
Ex: %math_1_ABS((%player_yaw%)-(%target_yaw%))%
Then save and its ready !
Try it now
Copy this into ExecutableItems and reload
From the SCore custom commands reference. Paste it into a config, run the plugin's reload command, and you have a working starting point to edit.
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
playerCommands:
- ABSORPTION amount:5 time:200 # Gives the player absorption
activator1: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of target
targetCommands:
- ABSORPTION amount:5 time:200 # Gives the target absorptionPlugin used on this page
ExecutableItemsCustom items with abilities, activators and commands — no code.
- 5.0/5 from 10 reviews
- 3.2K servers running it right now (bStats)
- 52 downloads on SPlugins
€19.99
one-time, lifetime updates