Sueta

[Abandoned] RandomItemDropper

1.1.1

Drop random items between two locations!

·Plugin


What does it do?
With this plugin, you can easily drop random items between two locations based on chance rates!

Features

  • Automatic dropper
  • Unlimited drop profiles
  • Drop items by chance rate
  • Async drop mode/adjustable delay
  • Easily add/remove items
  • Fully editable messages
  • Supports multiple minecraft versions

Intended usage

  1. Create a drop profile (/rid create <profile>)
  2. Set the 1st location of the profile you created. (/rid loc1 <profile>)
  3. Set the 2nd location of the profile you created (/rid loc2 <profile>)
  4. Add the items you want (/rid addItem <profille> <material>)
    Warning:
    You should add the items according to their names in the bukkit library. Check it out here:
    https://dev.bukkit.org/projects/supplies/pages/material-list
  5. Set the chance rate of the item you added. (/rid setChance <profile> <material> <chance>)
    Warning:
    The chance rate totals must be 100%.
  6. You can enable or disable async mode with ' /rid async <profile>' command.
    Warning:
    If you enabled async mode, you should set the delay with ' /rid setAsyncDelay <profile> <delay>' command.
  7. You can see the info of the profile with ' /rid info <profile>' command.
  8. All configues are done! you can drop the items based on the chance rates with the '/rid drop <profile> <item size>' command.

Commands

Command list
  1. /rid drop <profile> <item size>
  2. /rid create <profile>
  3. /rid delete <profile>
  4. /rid loc1 <profile>
  5. /rid loc2 <profile>
  6. /rid addItem <profile> <material>
  7. /rid removeItem <profile> <material>
  8. /rid setChance <profile> <material> <chance>
  9. /rid async <profile>.
  10. /rid setAsyncDelay <profile> <delay>
  11. /rid info <profile>
  12. /rid reloadConfig

Images & Gifs

Images & Gifs
Dropper
Async mode enabled (delay = 1s)

Async mode disabled

Commands

Auto dropper

Config file

Config
# Created by EylexLive  
 # Discord: Umut Erarslan#8378  
 # Please forward bugs you find via Discord.  
 
auto-dropper  :  
  enabled   :  false  
  minutes-remaining-broadcast-enabled   :  true  
  minutes-remaining-broadcast   : 
      # 5 minutes before dropping.   
    '5'  :  
      message   :  '&8  [  &7Auto Dropper&8  ]  &f  %drop_size% items &awill randomly drop between  
        &f  %location_1% &aand &f%location_2% &acoordinates at &f%minutes% minutes later.'  
     # 4 minutes before dropping.   
    '4'  :  
      message   :  '&8  [  &7Auto Dropper&8  ]  &f  %drop_size% items &awill randomly drop between  
        &f  %location_1% &aand &f%location_2% &acoordinates at &f%minutes% minutes later.'  
     # 3 minutes before dropping.   
    '3'  :  
      message   :  '&8  [  &7Auto Dropper&8  ]  &f  %drop_size% items &awill randomly drop between  
        &f  %location_1% &aand &f%location_2% &acoordinates at &f%minutes% minutes later.'  
     # 2 minutes before dropping.   
    '2'  :  
      message   :  '&8  [  &7Auto Dropper&8  ]  &f  %drop_size% items &awill randomly drop between  
        &f  %location_1% &aand &f%location_2% &acoordinates at &f%minutes% minutes later.'  
     # 1 minutes before dropping.   
    '1'  :  
      message   :  '&8  [  &7Auto Dropper&8  ]  &f  %drop_size% items &awill randomly drop between  
        &f  %location_1% &aand &f%location_2% &acoordinates at &f%minutes% minute later.'  
   # When it is 18:00   
  '18:00'   : 
      # Drop profile name created earlier.   
    drop-name   :  drop1 
     # How many items will it drop?   
    drop-size   :  10 
     # Do you want to send a broadcast message?   
    broadcast-message-enabled   :  true 
     # Message   
    broadcast-message   :  '&8  [  &7Auto Dropper&8  ]  &f  %drop_size% items &arandomly dropped  
     between &f  %location_1% &aand &f%location_2% &acoordinates!'

Drops file

Drops
drops  :  
  drop1  :  
    loc1   :  LOCATION  
    loc2   :  LOCATION  
    items   :   {   }   
    async  :  
      enabled   :  true  
      delay   :  1

Need help?

Discord : Umut Erarslan#8378
Send a friend request!

Similar projects

Plugin →