Author Topic: On Player Jump  (Read 1949 times)

/title

on player jump event.

for example

>on player jump
>player
>addvelocity 0 0 20

Event inputs are something that happens to a brick.  A player jumping doesn't really happen to a brick.


What would I trigger the input on?  Every single brick on the server?  Every brick near the player?  The brick he's jumping off?

All of them are completely arbitary.

Event inputs are something that happens to a brick.  A player jumping doesn't really happen to a brick.


What would I trigger the input on?  Every single brick on the server?  Every brick near the player?  The brick he's jumping off?

All of them are completely arbitary.
Every brick that uses the event, like all other events triggered by something not related to a brick?

Events which are triggered by things that don't relate to an actual brick are always hacky and tend to be fail-binned by Badspot.

Maybe, just maybe, there's a reason for this.  Such an event has only two options to work at all.
  • It can run through every brick on the server, every time it's ever called.
  • It can keep a cache of bricks, which is prone to breaking and which no one else can share because their input will be on different bricks.


Running through every brick on the server every time anyone jumps is an idea so horrible that thinking about making such an add-on is actually giving me a migraine.
Caching all bricks that have the event isn't much better, because if I make a system I don't want it to be exclusive to my own mod.

Regardless, a brick fifty miles away shouldn't have onPlayerJump trigger because I needed to hop over a wall, and I sure as hell don't want to be hit by a kill event every time I jump.
Having the event trigger on every brick that has it, everywhere on the server, is stupid.

You could shoot a raycast below the player to see if there is a brick, then you could call the onPlayerJump

Regardless, a brick fifty miles away shouldn't have onPlayerJump trigger because I needed to hop over a wall, and I sure as hell don't want to be hit by a kill event every time I jump.
Having the event trigger on every brick that has it, everywhere on the server, is stupid.
Can we stop for a minute and not assume that every freebuild server ever will abuse things like this

Can we stop for a minute and not assume that every freebuild server ever will abuse things like this
Are you for real?

Hey KitKat, are you wanting this add on to serve a special purpose like just making players jump higher?(because that can be done in a more practical way than an onPlayerJump event). My idea is that, if you're wanting players to jump higher at a certain location, you could have a zone with onPlayerEnterZone, Player, setJumpStrength [ ], and onPlayerLeaveZone, reset the jump strength back to normal

Are you for real?
events for specific things that can be abused aren't always a bad thing
I'm probably going to go and add in the killbrick event for my dungeon generator, but badspot removed it from the game because it can be abused
it doesn't mean it doesn't have a use

I can only see a very simple fix, without making a new addon for events that is. Just add a zone brick of some kind above the player in the certain part of your map, make sure the brick with the addition velocity event on it is just right below the player max jump height. e.g. 10 blocks above ground zone plate ontop, and so on.

If you really want, I'll make this.

If you really want, I'll make this.
and will you release a link?


for the example in the op, it would probably be a much better solution to just make a player type that jumps higher

I would go with the brick they're jumping off.