DeadlyDisasters
  • ⚙️Custom Disasters
    • How To Make A Custom Disaster
    • Skeleton Body
    • Core Body
    • Actions
      • Disaster Action
        • Disaster Modifiers
      • Broadcast Action
      • Fill Action
      • Summon Action
      • Particle Action
      • Sound Action
    • Custom Items
    • Custom Entities
    • Catalog Body
    • Publishing Your Disaster!
    • Resources
  • 👋Community
    • Discord
    • Challenge Packs (Coming Soon)
  • 🔌Developers
    • API
      • Creating Disasters
      • Listening For Disasters
      • Custom Items
      • Custom Entities (Coming Soon)
      • Extra Features
    • Source
Powered by GitBook
On this page
  1. Developers
  2. API

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);
PreviousCustom Entities (Coming Soon)NextSource

Last updated 2 years ago

🔌