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

Custom Items

Within the plugin there are various custom items that have unique abilities, there is a class called ItemsHandler which stores all the custom items in the plugin. All the items are static variables so you can easily reference them and give them to a player like this:

p.getInventory().addItem(ItemsHandler.plagueCure);
p.getInventory().addItem(ItemsHandler.soulRipper);
PreviousListening For DisastersNextCustom Entities (Coming Soon)

Last updated 2 years ago

🔌