Bug Closed · Could not replicate

lookingAt{e=PLAYER;d=15} is not working

#6588 opened by Unknown 11 months ago

Unknownreported this bug

Summary

Condition lookingAt{e=PLAYER;d=15} should definetly work since even in bukkits EntityType the PLAYER is a valid enum field.

Steps to reproduce

https://pastebin.com/f2s8hMbV, A Crucible Item configuration

Current behavior

The condition always fails, even when indeed looking at a player

Intended correct behavior

The condition to return true when a player is actually looked at

Server log file

https://mclo.gs/xx09b93

Debug log snippet

https://pastebin.com/yDRf8yUW

Proposed fixes

I dont know the handling of the input regarding the lookingAt{e} field but it should in my opinion either be optional so looking at anything would count, or specific fields like player should also be allowed. Making this optional would also opened way more doors when it comes to casting ranged abilites etc.

Thanks for taking the time!

Unknowncommented

Dear Tobias

While testing this I was unable to reproduce your issue. I tried this by making a similar item that just tells me if I looked, and if I looked at a player or a cow.

LookingAtStick:
  Material: STICK
  Skills:
  - m{message="I Looked at something"} @self ~onUse
  - m{message="I Looked at cow"} @Self ?lookingAt{e=COW;distance=10} ~onuse
  - m{message="I Looked at player"} @Self ?lookingAt{e=PLAYER;distance=10} ~onuse

then I logged in with my test account and used this stick on it. as seen in the attachment it worked flawlessly. are you sure you actually looked at a player, not just something that acts like one?

as we can't reproduce it, I will close the ticket, if you have more information on how to reproduce it, you can reopen it.

[Legacy attachment omitted]{width=394 height=391}

Sign in to join the discussion.