Question about Soul Shard spawners

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

iMontouch

New Member
Jul 29, 2019
147
0
0
hey there,

I want to know if there is any way to keep them tier V spawners spawning even if there is no player in the chunk, but the chunk is loaded.
I know that the spawner itself (on T5) doesnt need any players nearby. But when I place a World anchor/CC Chunk Loader and go away, the Spawner stops after several seconds.

We are on FTB Ultimate 1.12. Chunk Loaders are working and we havent reached the limit yet.

iMontouch
 

giesergast

New Member
Jul 29, 2019
193
0
0
dont now if there is a way i do now that this happens becuase mobs go away when your 128(i think ) blocks away
 

DoctorOr

New Member
Jul 29, 2019
1,735
0
0
I want to know if there is any way to keep them tier V spawners spawning even if there is no player in the chunk, but the chunk is loaded.

Yes. Do absolutely nothing. They're spawning when you're far away, it's just that the server despawns hostile mobs that aren't within 128 blocks of a player.

If you want them to not be despawned, use something that isn't hostile.
 

Freakscar

New Member
Jul 29, 2019
575
0
1
Seems more like it's a question of server side settings - as the RR Testserver1 has a Spawner-Dimension (made with DimensionalDoors) that is loaded with a ChickenChunkloader. And all T5 in there neither stop working without a player, nor after a certain amount of time.
 

Infallible83

New Member
Jul 29, 2019
137
0
0
not sure if trolling...

He is correct, the spawner will still be working but the mobs despawn almost immediately due to you being more that 128 blocks away. (There is also a despawn chance from as little as 32 blocks away)

  • A mob will immediately despawn if ever there is no player within 128 blocks of it. Note that this appears to be a sphere, not a cylinder from map top to bottom.
  • A mob that has had no player within 32 blocks of it for more than 30 seconds has a 1 in 800 chance of despawning on each game tick (1/20th of a second). Therefore, the half-life of monsters not within 32 blocks of a player is 27.73 seconds, after the initial 30 seconds have elapsed.

See: http://www.minecraftwiki.net/wiki/Spawn#Despawning

So in answer to your original question, there is not a way because the spawner is still working, it is a vanlla minceraft mechanic that is at play here...

However... If want to get into the coding, you can see in the "EntityAnimal" class under the EntityAnimal.java file you can fine the following (Which is relevant because some animals and tamed wolves do NOT despawn regardless of distance):

protected boolean canDespawn()
{return false;}
So in theory if you find the relavent class for defining mobs, you could change this value to true to mirror animal despawning behavior. However, in practice I think this will create lag after a short period of time due to he sheer number of entities that would be left in your world.

So in summary, he is not trolling...

Infallible
 

Juanitierno

New Member
Jul 29, 2019
579
0
0
Set up the spawner in a different dimension.

i understand the 128 block despawn only applies if actual distance can be calculated, which, if theres no players in the dimension, cannot.
 

iMontouch

New Member
Jul 29, 2019
147
0
0
I meant his grammar :D

The other dimension thing is something I BELIEVE only works in SP.. So besides coding, there is no other way than having those farms in the base?
 

Trunks9809

New Member
Jul 29, 2019
294
0
0
The 'dimension thing' works in MP as well. Mobs won't despawn in a dimension thats loaded but with no players in them.
 

iMontouch

New Member
Jul 29, 2019
147
0
0
that sounds great!

So the End will be a great place to build them.. or a Mystcraft world.
Sure, the mcworld has to be stable :D