Lucky Droppers

Lucky Droppers

Simple to use fun plugin creates slots like machines out of droppers.
Idea credit: lightspot21
Place a dropper with a button below it type a command to create a lucky dropper. Using them is as simple as holding the cost to play and pushing the button. A random item is chosen from the custom list and dropped from the dropper. Create as many different sets for items as you want! Configure The chance for any item!

Features:

  • Multiple dropper types
  • Fully customisable
  • Permissions for everything
  • Fast and automatic info signs
  • Clear help and error messages

Installation:

  1. Download the .jar to your servers plugins folder.
  2. Reload/Restart your server.
  3. Start dropping lucky!

Usage:

Create a Lucky Dropper:

  • Place a dropper (facing any direction)
  • Place either a wood or stone button closer than the maximum distance from config. (default is 1)
  • (Optional: Place a sign on the dropper block to display information about that dropper)

Use the Dropper:

  • Hold the item for payment in your hand.
  • Click the button!
  • Out comes your winnings!

Delete a Lucky Dropper:

  • Destroy the dropper block
  • or
  • /ld delete

Commands:

Look at a dropper to "select" it.
  • /luckydropper (aliases: ld, luckyd, luckydrops, droppers, drops)
  • /luckydropper reload (reload the config)
  • /luckydropper create [type] (turn selected dropper into a lucky dropper.)
  • /luckydropper set [Type] (change type of existing lucky dropper.)
  • /luckydropper delete (delete a dropper. (will leave dropper intact.)
  • /luckydropper type (List available types, display type of selected lucky dropper)
  • /luckydropper info [Type] (List all information on a single Dropper type.)

Upcoming features:

  • I'm open to suggestions!

Permissions:

permissions:
  LuckyDropper.*:
    description: gives access to all dropper commands.
    default: op
    children:
      LuckyDropper.admin: true
      LuckyDropper.alltypes: true
  LuckyDropper.admin:
    description: Allows player control droppers.
    default: op
    children:
      LuckyDropper.create: true
      LuckyDropper.delete
      LuckyDropper.type
      LuckyDropper.info
      LuckyDropper.reload
  LuckyDropper.create:
    description: Allows player to create and change droppers.
    default: false
  LuckyDropper.delete:
    description: Allows player to delete droppers.
    default: false
  LuckyDropper.type
    description: Allows player to view dropper types.
    default: false
  LuckyDropper.info
    description: Allows player to view dropper type information.
    default: false
  LuckyDropper.alltypes:
    description: gives access to use of all dropper types.
    default: false
  LuckyDropper.reload
    description: Allows player to reload Lucky Droppers.
    default: false
  LuckyDropper.poor:
      description: Allows player to use any dropper of type 'poor'.
    default: false

Config:

version: 1.1
infosigns:
  line1: '&4Lucky Drops'
  line2: '&a$t' # &t replaced with the type name
  line3: '&aCost:'
  line4: '&4$c' # $c replaced with cost item and quantity
maxdistance: 1
cooldown: 5 #default time if the types time is 0 or not there.
types:
  rich: # Name of type
  	cooldown: 5 #seconds between each use
    cost: 'diamond,2' # cost to play (item, quantity)
    drops: # List of possible drops
      - diamond_block,5 # possible drop (item, %chance)
      - air,50 # won't drop anything
      - emerald,10
      - gold_ingot,30
  poor:
    cost: gold_nugget,1
    cooldown: 5
    drops:
      - dirt,10
      - stone,10
      - iron_block,50
      - gold_block,30

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    69419
  • Created
    Nov 22, 2013
  • Last Released File
    Dec 12, 2013
  • Total Downloads
    3,221
  • License

Categories

Members

Recent Files