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:
- Set it with
set_vibration_cooldown. - For players, OPP sets it to 40 ticks automatically each time they move loudly while it's 0.
- It counts down by 1 every tick.
No fields.
For a moving player, it turning true means "a vibration just happened". Origins' rising_action runs on exactly that moment.
Example:
{
"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