Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Mobs despawn when going through portal due to CB ticking all worlds

Open Krinios opened this issue 3 years ago • 15 comments

Expected behavior

I expected a wither skeleton to come through the nether portal

Observed/Actual behavior

So I went to the farm and a wither skeleton spawned, so I saw it went into the nether portal and I followed it after going through the nether portal the wither skeleton was not found idk where it went

Steps/models to reproduce

this is the wither skeleton farm that I'm using https://www.youtube.com/watch?v=VL7HkV4y3Uo&t=684s

Plugin list

No plugins I made a new server and just dragged the world folder into to test the farm

Paper version

1.17.1 #196 latest

Agreements

  • [X] I am running the latest version of Paper available from https://papermc.io/downloads.
  • [X] I have searched for and ensured there isn't already an open issue regarding this.
  • [X] My version of Minecraft is supported by Paper.

Other

No response

Krinios avatar Aug 21 '21 10:08 Krinios

So I went to the farm and a wither skeleton spawned, so I saw it went into the nether portal and I followed it after going through the nether portal the wither skeleton was not found idk where it went

Did you test with anyone on the other end? I think skeletons just despawn.

imDaniX avatar Aug 21 '21 16:08 imDaniX

Yes, it is more than likely that the skeletons just despawned. Please ensure you are close enough to the skeletons, or try with another user around. In addition, check your despawn-ranges in paper.yml. They are in blocks.

e-im avatar Aug 21 '21 17:08 e-im

To recap conversation on discord apparently the wither skeletons will despawn when they go through the portal, behaviour that does not persist on vanilla or spigot. I haven't looked at this yet at all, but re-opening for the author until that is done.

e-im avatar Aug 23 '21 04:08 e-im

It is also happening on spigot, however functions as intended on vanilla.

ghost avatar Dec 27 '21 00:12 ghost

caused by https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/nms-patches/net/minecraft/server/level/WorldServer.patch?at=9ed7e4fbe4c0cd2076a52d65a9ea8ae810d0e176#123-132 / https://github.com/Byteflux/CraftBukkit/commit/671a2893f42a66ce1e966369ce2212c4df9953eb. I haven't fully evaluated the possible ramifications of reverting this. but seems safeish? Keeping behaviour from 1.2.5 is a bit...

e-im avatar Apr 10 '22 00:04 e-im

Any updates on this?

Alex1337F avatar Sep 03 '22 21:09 Alex1337F

I'm using a chunk loader plugin and they still despawn.

NBS-Paste avatar Nov 23 '22 20:11 NBS-Paste

Do we have any update? Isn't it just a matter of editing a few lines of code?

SRK7Kyros avatar Nov 28 '22 20:11 SRK7Kyros

What lines would I have to change? Also how would I change them and what to? I don’t know how to code in Java.

NBS-Paste avatar Nov 28 '22 22:11 NBS-Paste

caused by https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/nms-patches/net/minecraft/server/level/WorldServer.patch?at=9ed7e4fbe4c0cd2076a52d65a9ea8ae810d0e176#123-132 / Byteflux/CraftBukkit@671a289. I haven't fully evaluated the possible ramifications of reverting this. but seems safeish? Keeping behaviour from 1.2.5 is a bit...

Hello, any update on this? This bug seems to prevent any mob to pass a portal, which is the basic concept of almost all most efficitent farms in the game, as it takes the mobs out of the mob cap.

Looking at the link you sent, it seems like the variable flag is always true, which is a bit weird for a variable used in an if right after that.

theo2354 avatar Jan 05 '23 22:01 theo2354

If there's players in the other dimension that's not a bug, that's 100% how mojang programmed it, all of those types of farms are designed for single player

On Tue, 21 Mar 2023, 15:57 Rotaru Razvan - Andrei, @.***> wrote:

I've encountered this issue too, these are my findings: the farm works if there's < 2 players in the overworld, the mobs despawn only when there are multiple players in said dimension (maybe due to optimization). Mobs don't despawn when there are no players in said dimension.

— Reply to this email directly, view it on GitHub https://github.com/PaperMC/Paper/issues/6456#issuecomment-1478100135, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJMAZEQDHJKJA5IOIXTVZLW5HFWRANCNFSM5CRWRXEA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

electronicboy avatar Mar 21 '23 18:03 electronicboy

So there has to only be one person on the server?

Get Outlook for iOShttps://aka.ms/o0ukef


From: Shane Freeder @.> Sent: Tuesday, March 21, 2023 1:14:53 PM To: PaperMC/Paper @.> Cc: NBS-Paste @.>; Comment @.> Subject: Re: [PaperMC/Paper] Mobs despawn when going through portal due to CB ticking all worlds (#6456)

If there's players in the other dimension that's not a bug, that's 100% how mojang programmed it, all of those types of farms are designed for single player

On Tue, 21 Mar 2023, 15:57 Rotaru Razvan - Andrei, @.***> wrote:

I've encountered this issue too, these are my findings: the farm works if there's < 2 players in the overworld, the mobs despawn only when there are multiple players in said dimension (maybe due to optimization). Mobs don't despawn when there are no players in said dimension.

— Reply to this email directly, view it on GitHub https://github.com/PaperMC/Paper/issues/6456#issuecomment-1478100135, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJMAZEQDHJKJA5IOIXTVZLW5HFWRANCNFSM5CRWRXEA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://github.com/PaperMC/Paper/issues/6456#issuecomment-1478376914, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3SQEBPEZCSLXH53R3FS7ILW5HVZ3ANCNFSM5CRWRXEA. You are receiving this because you commented.Message ID: @.***>

NBS-Paste avatar Mar 21 '23 20:03 NBS-Paste

yes @NBS-Paste as @electronicboy mentioned, that's indeed the Vanilla behavior there.

This question has been asked many times in paper-help Discord and my friend Kyle has made a simple plugin that allow entity to exist for an extended period of time without player within range,

https://hangar.papermc.io/Kyle/Otherside/

The source code can be viewed publicly and this "should" make most portal farm works (given that the entity is then transported back relatively quickly)

I hope this helps you <3

EterNityCH avatar Mar 21 '23 23:03 EterNityCH

https://github.com/PaperMC/Paper/pull/9025 - removes the override for the empty worlds, this ofc will not fix issues purely brought on by the fact that many farms are designed for single player servers (embedded/external)

electronicboy avatar Mar 22 '23 00:03 electronicboy

yes @NBS-Paste as @electronicboy mentioned, that's indeed the Vanilla behavior there.

This question has been asked many times in paper-help Discord and my friend Kyle has made a simple plugin that allow entity to exist for an extended period of time without player within range,

https://hangar.papermc.io/Kyle/Otherside/

The source code can be viewed publicly and this "should" make most portal farm works (given that the entity is then transported back relatively quickly)

I hope this helps you <3

a year later, but this works great, thanks!!

Vuntorion avatar Apr 21 '24 21:04 Vuntorion