Passive Listener Input - TheComputerGeek2/MagicSpells GitHub Wiki
PassiveSpell
trigger: input
[!WARNING] Since 4.0 Beta 17.
Properties:
Property | Value |
---|---|
Cancellable | false |
Has Entity Target | false |
Has Location Target | false |
Description:
The listener activates on player movement input.
String Format Options:
(Unsupported.)
Section Format Options:
Option | Description | Type |
---|---|---|
on-press |
Checks if the keys were pressed. | Input Type List |
on-release |
Checks if the keys were released. | Input Type List |
old-input |
Checks if the old input had the specified keys held. | Input Filter |
new-input |
Checks if the new input has the specified keys held. | Input Filter |
triggers:
- trigger: input
on-press: ["jump", "left"]
on-release: ["sneak", "right"]
old-input: "left | right"
new-input: "!left & !right"