Villainous Horde Manager

Villainous Horde Manager

Mod

A library for creating Continuous Horde events.

Server Library

2,197 downloads
9 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Villainous Horde Manager is an API for creating Continuous Horde events

The Shorthand Explanation

The code for this mod is based off of Cold Snap Horde and its horde system, where the server will try to keep a consistent number of enemies alive until enough have been killed to end the event. When I wrote the code for Cold Snap Horde's version though, it wasn't very... reusable. This api is my attempt at fixing that, capable of spawning vanilla (or modded) mobs and sending them towards the target player like the snowmen do during the horde event.

You can now make your own hordes via JSON magic See the github page for more information on how to do this.

If you are a mod developer and you want more control over a custom horde Also see the github page. Each module has an example of how to instantiate hordes and get them to function correctly for a given platform (quilt being the same as fabric, for this case)

Interested? Here's some more!

If you're still reading this, you're probably a developer interested in looking into the code for this event. Which is very neat! I'll happily accept contributions that I see as helpful additions, and help out within reason to get you set up with hordes.

Extra details about horde requirements:

  • Entities added to the horde must extend the PathfinderMob class. Or you can use the enum system to bypass this, but this is not advised.
  • Bigger entities are harder to spawn due to the system attempting to avoid situations where mobs would suffocate. Try to keep larger mobs to a minimum/to low spawn weights.
  • The api will scan the environment around a potential spawnpoint for any solid blocks. The size of the scan depends on the size of the mob, meaning larger mobs will be more expensive on server resources.
  • The system tries to spawn mobs at a relatively close Y level to the player (preferring locations above the player over below).
  • If the system can not find a nearby Y level, it'll settle for any Y level it can find.
  • If a player makes it impossible for entities to spawn, the horde will end to prevent taking up more system resources.

Server Hosting

I've partnered with BisectHosting! If you need a quality server, click the picture below and use code "cartoonish" for 25% off your first month!


Project members

MaritheVillain

Owner

Details

Licensed MIT
Published 2 years ago
Updated 3 months ago