Bug Closed · Could not replicate

teleport @Location doesn't work in certain worlds

#5259 opened by Unknown 2 years ago

Unknownreported this bug

Summary

When running the teleport skill using the @Location, the mob will disappear when you are in a custom world (not overworld, nether, etc.) and will also not appear in the listactive command in neither world.

Steps to reproduce

GrenadeHell:
  Cooldown: 30
  Conditions:
  - health{h=<200}
  Skills:
  - teleport{us=true} @Location{x=164.5;y=42;x=192.5}
  - delay 20
  - shoot{type=ARROW;velocity=5}

this is the code that I used and the one that caused the problem, works fine in the main world but try to create a custom world and go there using a plugin like Multiverse-core and the mob will just disappear on the skill being used

Current behavior

It got me stuck for a while figuring out solutions to this bug and I did through the usage of pins instead of locations which seems to be working fine but it's still a pretty weird issue

Intended correct behavior

It should just teleport the entity to the location in the world they are currently in, as written in the wiki.

Server log file

https://pastebin.com/KPLbbCUi

Debug log snippet

https://pastebin.com/XRJ1uG3E

Proposed fixes

Add an option to choose a world in the @Location targeter

Unknowncommented

I haven't been able to replicate this, possible the mob is getting too far away from you and despawning?

Sign in to join the discussion.