Add FallProtection support for actions on landing
7-75 opened this issue ยท 4 comments
Hello,
I know you are busy so PLEASE reply only when you have time.
I think I've "fixed" the "smash" spell that was under "testing" somewhere in the examples folder in this repo.
but I think that it would be 1000 times better if there was a way for the sphere action to happen only when the player actually "lands" on the ground, after the velocity action. I would like to ask is if there's a way to do that because right now all that I'm doing is wait for one second and then have the "sphere" happen.
here's the spell
SmasherStrike:
actions:
cast:
- class: FallProtection
- class: Velocity
direction: 0,1,0
- class: Delay
- class: Velocity
- class: Delay
delay: 1000
- class: ChangeContext
target_caster: true
actions:
- class: Sphere
actions:
- class: BreakBlock
parameters:
duration: 1
target: self
min_speed: 5
max_speed: 5
delay: 500
falling: true
speed: 0.9
brush: air
radius: 5
undo: 15000
destructible: solid
destructible_override: true
destructible_durability: 45
break_durability: 20
I agree with you, but there's no way to do that right now.
This would probably look like the FallProtection action having a set of sub-actions that run when it prevents fall damage (which is the only way this plugin can really detecting a "landing").
We can leave this issue open until that gets implemented, but I don't expect that will be anytime soon, sorry.