Lunatrius / Stackie

Improves vanilla stacking and adds experience orb stacking.
MIT License
9 stars 3 forks source link

Stack entities #10

Open Eufranio opened 6 years ago

Eufranio commented 6 years ago

Could this mod stack entities like zombies, skeletons, etc?

Lunatrius commented 6 years ago

What would stacking such entities do?

Eufranio commented 6 years ago

Reduce the lag caused by mob farms. So, if there are 30 mobs close to each other on a mob farm, they would form 1 entity only.

Lunatrius commented 6 years ago

That doesn't really answer the question. How would/should the stacked entity behave, how should it interact with the rest of the world.

Eufranio commented 6 years ago

Oh, my idea is the following: when there are X mobs with the same entity type near each other, they would all be "killed", and one stacked entity would spawn, holding an reference to the X mobs that were stacked. When killing this stacked entity, it would drop the items and die normally, and would spawn another stacked entity with X - 1 mobs. So, if there are 10 zombies, stack them into one entity. Killing the stacked entity updates its value to 9, then 8, then 7, and etc.

Similar to this plugin.

Lunatrius commented 6 years ago

Couldn't you just use the plugin then?

Eufranio commented 6 years ago

The plugin doesn't work for modded entities, neither is a Sponge plugin (so no way to use it on modded 1.8+ servers). This would be nice to see on Stackie.

EverNife commented 6 years ago

I would like it too

Lunatrius commented 6 years ago

The reason why it doesn't work with modded entities is that there is no way to safely stack them. Which modded mobs are considered similar enough to get stacked?

EverNife commented 6 years ago

A whitelist for mobs that would be allowed to be stacked maybe?

Which modded mobs are considered similar enough to get stacked?

A couple of wisps for exemple. Or firebats (yeee firebats screw up a lot...)

I

Eufranio commented 6 years ago

Only vanilla stacking is enough as well.