Extra Features

There are some extra features you can use to do cool things such as spawning just a water or lava geyser without starting the event, or infecting and curing entities from the plague, or spawning a single meteor, etc.

Here is the constructor for spawning a single meteor:

// The type value can be 1-3; 1 = normal meteor; 2 = exploding meteor; 3 = splitting meteor
MeteorShower.spawnMeteor(int type, Location spawn, Location target, int size);

This is how you can infect an entity with the black plague or cure them from it:

// You can also infect specified targets using this
BlackPlague.infect(LivingEntity entity);

// You can also cure an entity using this
BlackPlague.cureEntity(LivingEntity entity);

This is how you can spawn a water or lava geyser without actually starting a geyser disaster:

Geyser geyser = new Geyser(1);
// Creates a water geyser at the location
geyser.createWater(Location location);
// Creates a lava geyser at the location
geyser.createLava(Location location);

Last updated