Closed OmegaWulf closed 2 years ago
Also the refresh
value could be useful as an improvement as well.
Currently if you put on the armor while standing on stone and then jump, you lose the speed buff right away.
With a refresh
option, it could be configured to only check every 3 seconds. This way players can jump without losing the effect.
it automatically checks several times a second; the conditions are checked over and over again
@WillFP Can you double check with something like this:
- id: add_stat
args:
stat: speed
amount: 22
conditions:
- id: standing_on_block
args:
block: stone
For me, it doesn't seem to ever add the bonus back. I only get the buff if I put on the armor while standing on the block. Even if I jump, I permanently lose the buff and don't get it back until I put on an armor piece again.
Fixed!
Describe the bug Conditions like
standing on block
only checks one time when the armor is put on.For example
standing on block
will only activate if you're standing on the block and put on the armor. If you walk off the target block and then back on, the effect will never fire again.To Reproduce Steps to reproduce the behavior:
Expected behavior I expect the conditions to periodically check their values over time. This should probably be configurable for performance reasons.
For example, an argument on a condition:
refresh
This argument takes either seconds or ticks and will re-check the condition over and over again.
Server Information (please complete the following information):