Origins: Powerful Powers
» Entity conditions » Vibration on cooldown

Vibration on cooldown

origins-powerful-powers:vibration_on_cooldownentity conditiontracked

True while the entity's vibration cooldown is above 0. This is an OPP timer:

No fields.

For a moving player, it turning true means "a vibration just happened". Origins' rising_action runs on exactly that moment.

Example:

json
{
  "type": "origins:action_over_time",
  "interval": 1,
  "condition": {
    "type": "origins-powerful-powers:vibration_on_cooldown"
  },
  "rising_action": {
    "type": "origins:execute_command",
    "command": "playsound minecraft:block.sculk_sensor.clicking player @a ~ ~ ~ 1 1"
  }
}

Everyone nearby hears a sculk click each time you make a vibration, at most every 2 seconds.

Attributes: vibration_cooldown (ticks left), vibration_on_cooldown