EngineHub / WorldGuard

🛡️ Protect your Minecraft server and lets players claim areas
https://enginehub.org/worldguard/
Other
812 stars 528 forks source link

Mobs going through the central end exit portal ends up at spawn even if protected by a worldguard region #2071

Closed snurre0 closed 1 month ago

snurre0 commented 3 months ago

WorldEdit Version

7.3.0-beta-03+d6d222e

WorldGuard Version

7.0.10-SNAPSHOT+2260-c7319f1

Platform Version

Paper version git-Paper-408 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: c5d168c)

Confirmations

Bug Description

I'm unsure if this is actually a bug, but for many years using WorldGuard, players who tried to move mobs(e.g. shulkers) from the end through the central exit portal to spawn, ended up having their mobs automatically vanish when doing so, because our spawn is protected by a WorldGuard region. I assume that was happening because we have the deny-spawn flag set to true for the spawn area, but I am not entirely sure. At some point quite a while ago, moving mobs from the end to spawn was suddenly possible again, and mobs started ending up at spawn.

Expected Behavior

I would expect that setting the flag deny-spawn to true for a region covering the overworld spawn area, should prevent mobs from being teleported to spawn from the end through the portal.

Reproduction Steps

  1. Create a region covering the overworld spawn area and set deny-spawn to true for that region
  2. Spawn a mob close to the central end exit portal and push it through the portal
  3. Observe the mob appearing at spawn

Optional WorldGuard-Report

No response

Anything Else?

No response

aurorasmiles commented 1 month ago

This is technically not a bug, deny-spawn only affects spawning, but moving an entity through a portal is not spawning, it's teleporting. Pretty similar to deny-spawn enderman - enderman won't spawn in that region, but they can still teleport there

wizjany commented 1 month ago

yea working as expected. there's separate feature requests to handle mob movement with flags but that's another can of worms entirely.