apace100 / origins-fabric

MIT License
175 stars 173 forks source link

[1.20.1] PowerType `toggle` could be pre-performed even `condition` is not met #747

Open LTCatt opened 5 months ago

LTCatt commented 5 months ago
{
  "type": "origins:toggle",
  "active_by_default": false,
  "key": "key.origins.primary_active",
  "retain_state": true,
  "condition": {
      "type": "origins:resource",
      "resource": "origins_new:ghost/phasing_resource",
      "comparison": "==",
      "compare_to": 300
  }
}

If condition is not met, and you press the button, so that it is toggled as soon as condition is met. That is, if you press the skill button while the skill is on cooldown, it will be released immediately after the cooldown ends.

Version: 1.20.1-1.10.1