CommandHelper

CommandHelper

46.5k Downloads

pressure_plate_activate not triggered by non player entities

LadyCailinBot opened this issue ยท 13 comments

commented

CMDHELPER-2859 - Reported by VergilPrime

As far as I can tell the only way pressure_plate_activate goes off is if a player stands on it.

commented

Comment by VergilPrime

Any chance of this getting fixed/enhanced soon?

commented

Comment by PseudoKnight

Maybe "entity_interact" with prefilters for entity type and block type?

commented

Comment by VergilPrime

I don't see entity_interact on the staged event api page :I

commented

Comment by PseudoKnight

That's because I was asking if that sounded intuitive.

commented

Comment by VergilPrime

yeah that sounds like it would work just fine.

commented

Comment by VergilPrime

Are you still working on that?

commented

Comment by PseudoKnight

No, I never started. I don't need it. I have plenty of things to add that I do need. In fact, I can't even think of what I'd use it for. Maybe when you're riding a horse?

commented

Comment by VergilPrime

Trying to keep players without perm from entering a door. They just hop on a horse and ride straight through. Also mobs can wander onto the plate and let the player in.

commented

Comment by PseudoKnight

Added entity_interact in build 2839

commented

Comment by PseudoKnight

This isn't a bug, it's a feature request.

commented

Comment by VergilPrime

I disagree. the name pressure_plate_activate doesn't imply that it only applies to players. It should trigger ANY time a pressure plate is activated, therefore this is a bug.

commented

Comment by PseudoKnight

I'm saying this was by design. They didn't accidentally exclude other entities. It's a physical player interact event in bukkit. They'd have to add support for other entities, which would use a different bukkit event with different code.

commented

Comment by VergilPrime

Hmmm. Okay, I agree :)