PrismarineJS / flying-squid

Create Minecraft servers with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/flying-squid/
MIT License
545 stars 99 forks source link

Limit all spawning #224

Open rom1504 opened 8 years ago

rom1504 commented 8 years ago

Including eggs

CertainLach commented 8 years ago

May be better way is to optimize physics?)

rom1504 commented 8 years ago

Yes, but that's harder to do. So I'll just limit spawning for now.

109C commented 8 years ago

So essentially a mob cap?

rom1504 commented 8 years ago

Yes, I've already did it there https://github.com/PrismarineJS/flying-squid/blob/master/src/lib/plugins/spawn.js#L83 , just didn't check for eggs. Could directly be done in initEntity too

109C commented 8 years ago

I think it would be better to be done in initEntity, as it also would be the cap for naturally spawned entities, etc.