Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 140
    • Issues 140
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1671

Closed
Open
Created Jul 22, 2024 by eliavhaganav@eliavhaganav

teleport @Location doesn't work in certain worlds

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

Edited Jul 22, 2024 by eliavhaganav
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking