Skip to main content

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"

danger

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
info

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 !

💬 Comments

Have questions or feedback? Join the discussion below!