Bug Verified

LookingAt condition with entity type pitching errors

#6235 opened by Unknown 1 year ago

Unknownreported this bug

Summary

The LookingAt condition appears to be broken and pitches errors.

Steps to reproduce

Include the following mob file and skill file and spawn a frienderman. If LookingAt is not intended to work with mythic mobs, change the type to a vanilla entity, such as ENDERMAN, for the same result. https://pastebin.com/CpYmVfE2 https://pastebin.com/cbE98EJA

Current behavior

When using the LookingAt condition, java exception errors are printed to the debug console. When type is set to an entity, the condition seems to always evaluate as false. When type is a block it can return true, but the error messages are still printed.

Intended correct behavior

The LookingAt condition should evaluate to true when the player is looking at the specified type, without errors. Ideally this would include mythic mobs types.

Server log file

https://pastebin.com/P5qwZbsP

Debug log snippet

https://pastebin.com/9ASTAy35

Proposed fixes

This may be some kind of threading problem, which is not my area of expertise.

Unknowncommented

Thanks for sharing the details — it's clear that the LookingAt condition is having a serious bug when dealing with entities, especially mythic mobs; hopefully, the devs will fix it soon so that Monkey Mart Game the feature works as expected and doesn't cause an exception in the console.

Unknowncommented

Make sure that the entity type you are using in the LookingAt condition is valid and has been defined in your code.retro bowl

Sign in to join the discussion.