CommandHelper

CommandHelper

46.5k Downloads

"Cancelling" player_move by set_ploc(@e['from']) launches player into the sky.

LadyCailinBot opened this issue ยท 2 comments

commented

CMDHELPER-2881 - Reported by VergilPrime

bind(player_move,null,array('threshold':5)/any threshold/,@e,set_ploc(@e['from']))

Documentation says "you can 'cancel' the event by moving the player back to the from location, or otherwise 'change' the location by using set_ploc()."

This used to work, but at some point started teleporting the player up repeatedly. I thought adding a threshold might fix it (theoretically the fall wouldn't trigger the event again) but it did not.

commented

Comment by PseudoKnight

Hm, "launches player into the sky" ... bug or feature?!

I believe @e['from'] is not the same as ploc(). For some reason events are feet location and ploc() is the block you're standing on. So set_ploc(array(@e['from'][0], @e['from'][1] - 1, @e['from'][2], @e['from'][3])).

commented

Comment by EntityReborn

After some discussion, we won't apply a fix for this, as it would modify current behavior and possibly break user's scripts. Pseudo has an acceptable solution.