Suggestion - Current Velocity Attribute
NightScythe1 opened this issue ยท 5 comments
Just wanted to suggest an attribute or variable of sorts that measures a mage's current velocity/speed. I'm unsure if this would be possible, but it's mainly due to wanting to use an action like CheckVelocity to get the actual current velocity and use it as a variable in parameters spell parameters (e.g. to scale spell damage with current move speed), but CheckVelocity currently only allows for checking between a 'min' and 'max' velocity (I think) so it doesn't actually tell the player what their velocity is.
Hello! Sorry to reopen the suggestion, I was just wondering if we could also have a target_velocity
attribute as well in order to return the spell target's speed?
So unfortunately Minecraft doesn't track velocity for entities in any reliable way.
So I could add target_velocity
, but I fear it'd be a little confusing/misleading because it would only work on players and magic mobs.
Do you still think that's a good idea?
Ah I see, that does make it a little more difficult... Although it may still be a useful attribute even if just for players & magic mobs! My own usecase is only for magic mobs and players at least- so if you thought it was worth adding I'd definitely get some use out of it in this form myself!