#(LG_Legacy) Preventing npcs from triggering pressure plates.

35 messages · Page 1 of 1 (latest)

heady blade
#

Not sure how to accomplish this, due to either bug or oopsie on my part.

The relevant event for on entity interacts with block doesn't seem to fire for npcs, ignoring my matcher for npc which was changed to test.

However the event on player stands on material fires when a player or npc stands on pressure plates, yet... There is no linked npc?

https://paste.denizenscript.com/View/126890 - Debug
https://paste.denizenscript.com/View/126891 - Scripts

halcyon fableBOT
#

(LG_Legacy) Preventing npcs from triggering pressure plates.

halcyon fableBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

heady blade
sonic bisonBOT
# heady blade !logcheck https://paste.denizenscript.com/View/126890
Server Version

Paper version 1.21.1-98-9b1ee0d (MC: 1.21.1)

Plugin Version(s)

Citizens: 2.0.35-SNAPSHOT (build 3572) -- (Current build :white_check_mark:)
Denizen: 1.3.1-SNAPSHOT (build 7067-DEV) -- (Current build :white_check_mark:)
Sentinel: 2.9.1-SNAPSHOT (build 524) -- (Current build :white_check_mark:)

Checked For

@heady blade

UUID Version

4 (:white_check_mark: Online)

Java Version

21.0.3 :white_check_mark:

heady blade
#

Updated paper, same issue.

heady blade
#

Would like to say that I'm using a sentinel.

muted karma
#

I'd like to know this too 😔

heady blade
#

Been a month so I'm assuming that this is a bug.

digital pewterBOT
#
Changed to Bug

Thread is now a Bug thread. This indicates a core code bug that a developer must resolved, not an error message or other support topic. Please do not misuse the Bug label. Use </helpthread:1028674284870180883> to switch the thread back to a normal help thread if you are not 100% confident it is a code bug.

dire girder
#

are NPCs supposed to trigger pressure plates in the first place? 0.o

heady blade
#

They should be able to? They're mobs, or players in theory. So their heavy weight should be able to trigger most pressure plates?

dire girder
#

yeah i checked they don't

heady blade
#

I-

#

Could it be since mine was a sentinel?

#

Willing to try on latest build if necessary.

dire girder
#

shouldn't be relevant 0.o

#

unless there's a bug

heady blade
#

Weird.

#

It's not triggering anymore, but...

#

If I walk over it and the npc walks over it, then it triggers for the npc.

#

Definitely something goofy going on.

#

I'm gonna assume they're not meant to be triggering pressure plates at all, but at the same time I think they probably should?

dire girder
#

general rule with Citizens is they interact with as little as possible if not explicitly and intentionally caused to (ie by plugin code or script)

#

if they just did everything regular mobs did, you'd be better off using regular mobs not NPCs

heady blade
#

Ah. That's a fair point. Isn't this still a bug that it's firing in denizen though?

dire girder
#

does it fire for both the NPC and the player, or just the NPC?

heady blade
#

May of found something, one moment.

#

Okay so it's actually dependant on whos on the pressure plate first.

NPC's don't actually do anything to the pressure plate.
My script fires if...

  • The npc is standing on the pressure plate first, and a player steps on it.
  • A weighted pressure plate is being stood on and then a npc stands on it or vice versa. (It continually fires, maybe a separate bug?)
#

Also it seems like the npc still keeps the pressure plate pressed down if the player leaves until the npc leaves it too, which sounds unintentional.

dire girder
#

that should be filed in #1027028179908558918 as a Citizens bug then

digital pewterBOT
#
Changed to Help/Support

Thread is now a Help/Support thread. A helper will check your thread when available.

heady blade
#

Sure thing.