Elixir
BPEdCds.png


RczIz0i.png

  • Java 8 & Spigot 1.8.X NOT COMPATIBLE FOR 1.9 - 1.11!
  • Vault AND AN Economy PLUGIN
qNmpkiY.png

  • NOTE: THE MAX AMOUNT OF SECONDS AVAILABLE ON A CUSTOM POTION IS 1638! I CANNOT FIX THIS ISSUE, BECAUSE THIS STILL HAPPENS WITH THE/effect COMMAND!
  • This plugin allows players to purchase and sell potions through /elixir or by clicking on an entity with the name "Elixir Merchant".
  • You can create your own potions in the config, and they will be shown in the Custom Potions Gui, "Elixirs".
  • Permission to use /elixir : "Elixir.command"
esNqkm9.png

  • Purchase & download
  • Drag and drop the .jar file in your plugins folder
  • Download, drag and drop Vault and an Economy plugin in your plugins folder
  • Reload the server, and enjoy!
gweka40.png

Code:
# Made by RandomHashTags
settings:
  # Right Clicking an Entity with the custom name "Elixir Merchant" will open the Elixir Merchant Gui
  right-click-open-merchant: true
  # Left Clicking an Entity with the custom name "Elixir Merchant" will open the Elixir Merchant GUui
  left-click-open-merchant: true
  # When you close each of the following guis, it will bring you back to the Elixir Merchant
  reopen-when-closed-brewing-gui: true
  reopen-when-closed-potions-gui: true
  reopen-when-closed-custom-potions-gui: true
#
messages:
  not-enough-money:
  - ' '
  - '&c&lYou do not have enough money to purchase this item'
  not-enough-xp:
  - ' '
  - '&c&lYou do not have enough xp to purchase this item'
  purchased-item:
  - ' '
  - '&c&l-${ITEM_COST}'
  sell-item:
  - ' '
  - '&a&l+${ITEM_SELL_COST}'
  item-cannot-be-sold:
  - ' '
  - '&c&lThis item cannot be sold'
  item-cannot-be-purchased:
  - ' '
  - '&c&lThis item cannot be purchased'
#
elixir:
  title: '&d&lElixir Merchant'
#
brewing:
  title: '&a&lBrewing'
  purchase-lore:
  - ' '
  - '&dLeft click to buy'
  - '&dRight click to sell'
  - ' '
  - '&aBuy Price: &f{BUY_PRICE}'
  - '&cSell Price: &f{SELL_PRICE}'
  item-not-sellable: 'Not Sellable!' # THIS IS WHEN THE "sell-price" IS ZERO | sell-price: 0
  item-not-buyable: 'Not Buyable!' # THIS IS WHEN THE "purchase-price" IS ZERO | purchase-price: 0
  #
  # "purchase-price", "sell-price", and "item" IS REQUIRED FOR ALL!!
  '0':
    item: 'brewing_stand_item'
    purchase-price: 5,000
    sell-price: 0
  '1':
    item: 'nether_stalk'
    purchase-price: 50
    sell-price: 0
  '2':
    item: 'blaze_rod'
    purchase-price: 50
    sell-price: 0
  '3':
    item: 'sugar'
    purchase-price: 50
    sell-price: 0
  '4':
    item: 'ghast_tear'
    purchase-price: 50
    sell-price: 0
  '5':
    item: 'speckled_melon'
    purchase-price: 50
    sell-price: 0
  '6':
    item: 'magma_cream'
    purchase-price: 50
    sell-price: 0
  '7':
    item: 'raw_fish'
    data: 3
    purchase-price: 50
    sell-price: 0
  '8':
    item: 'golden_carrot'
    purchase-price: 50
    sell-price: 0
  '9':
    item: 'rabbit_foot'
    purchase-price: 50
    sell-price: 0
  '10':
    item: 'fermented_spider_eye'
    purchase-price: 50
    sell-price: 0
  '11':
    item: 'redstone'
    purchase-price: 50
    sell-price: 0
  '12':
    item: 'glowstone_dust'
    purchase-price: 50
    sell-price: 0
#
#
potions:
  title: '&a&lPotion'
  purchase-lore:
  - ' '
  - '&dLeft click to buy'
  - '&dRight click to sell'
  - ' '
  - '&aBuy Price: &f{BUY_PRICE}'
  - '&cSell Price: &f{SELL_PRICE}'
  item-not-sellable: 'Not Sellable!' # THIS IS WHEN THE "sell-price" IS ZERO | sell-price: 0
  item-not-buyable: 'Not Buyable!' # THIS IS WHEN THE "purchase-price" IS ZERO | purchase-price: 0
  #
  # USE THIS TO MAKE YOUR POTIONS! http://minecraft-ids.grahamedgecombe.com/potion-calculator
  # THE "Metadata:" is the number you put after "data:"!
  # Items don't need a "name" or "data".
  # "purchase-price", "sell-price", and "item" ARE REQUIRED FOR ALL!!
  '0':
    item: 'potion'
    data: 8265
    name: '&ePotion of Strength'
    purchase-price: 50
    sell-price: 0
  '1':
    item: 'potion'
    data: 8233
    purchase-price: 50
    sell-price: 0
  '2':
    item: 'potion'
    data: 8258
    purchase-price: 50
    sell-price: 0
  '3':
    item: 'potion'
    data: 8226
    purchase-price: 50
    sell-price: 0
  '4':
    item: 'potion'
    data: 8257
    purchase-price: 50
    sell-price: 0
  '5':
    item: 'potion'
    data: 8225
    purchase-price: 50
    sell-price: 0
  '6':
    item: 'potion'
    data: 8229
    purchase-price: 50
    sell-price: 0
  '6':
    item: 'potion'
    data: 16421
    purchase-price: 50
    sell-price: 0
  '7':
    item: 'potion'
    data: 16452
    purchase-price: 50
    sell-price: 0
  '8':
    item: 'potion'
    data: 16420
    purchase-price: 50
    sell-price: 0
  '9':
    item: 'potion'
    data: 16458
    purchase-price: 50
    sell-price: 0
  '10':
    item: 'potion'
    data: 16456
    purchase-price: 50
    sell-price: 0
  '11':
    item: 'potion'
    data: 16456
    purchase-price: 50
    sell-price: 0
  '12':
    item: 'potion'
    data: 8267
    purchase-price: 50
    sell-price: 0
  '13':
    item: 'potion'
    data: 8235
    purchase-price: 50
    sell-price: 0
  '14':
    item: 'potion'
    data: 8259
    purchase-price: 50
    sell-price: 0
  '15':
    item: 'potion'
    data: 8269
    purchase-price: 50
    sell-price: 0
  '16':
    item: 'potion'
    data: 8262
    purchase-price: 50
    sell-price: 0
  '17':
    item: 'potion'
    data: 8270
    purchase-price: 50
    sell-price: 0
#
# duration is measured in seconds!
#
# Available potion-effects:
## FireRes | Fire Resistance = Fire Resistance
## Invis | Invisibility = Invisibility
## Strength = Strength
## WaterBreathing = Water Breathing
## Regen | Regeneration = Regeneration
## Speed = Speed
## Poison = Poison
## InstantHealth = Instant Health
## NightVision = Night Vision
## Weakness = Weakness
## Slowness = Slowness
## Jump = Jump
## InstantDmg = Instant Damage
## Healthboost = Health Boost
## DmgRes | DmgResistance = Damage Resistance
custom-potions:
  title: '&a&lElixir'
  size: 9
  purchase-lore:
  - ' '
  - '&dLeft click to buy'
  - '&dRight click to sell'
  - ' '
  - '&aBuy Price: &f{BUY_PRICE}'
  - '&cSell Price: &f{SELL_PRICE}'
  item-not-sellable: 'Not Sellable!' # THIS IS WHEN THE "sell-price" IS ZERO | sell-price: 0
  item-not-buyable: 'Not Buyable!' # THIS IS WHEN THE "purchase-price" IS ZERO | purchase-price: 0
  #
  # USE THIS TO MAKE YOUR POTIONS! http://minecraft-ids.grahamedgecombe.com/potion-calculator
  # THE "Metadata:" is the number you put after "data:"!
  # Items don't need a "name", "lore", "data", "splash".
  # "purchase-price", "sell-price", "duration", "potion-effect", and "potion-effect-level" ARE REQUIRED FOR ALL!!
  # '0' = The 1st slot of the GUI. '8' = The 9th slot of the GUI.

  '0':
    item: 'potion'
    name: '&aderpy'
    lore:
    - '&7randomhashtags does a derp'
    purchase-price: 6,000
    sell-price: 0
    potion-effects:
      '1':
        effect: 'speed'
        level: 2
        duration: 60
      '2':
        effect: 'jump'
        level: 2
        duration: 60
  '1':
    item: 'potion'
    name: '&aUpdate 2'
    lore:
    - '&7This is the second Elixir update!'
    purchase-price: 10,000
    sell-price: 0
    potion-effects:
      '1':
        effect: 'strength'
        level: 3
        duration: 60
  '2':
    item: 'potion'
    splash: true
    name: '&aUpdate 3'
    lore:
    - '&7This is the third Elixir update!'
    purchase-price: 10,000
    sell-price: 0
    potion-effects:
      '1':
        effect: 'regen'
        level: 3
        duration: 60
#

pg4g9Ff.png

  • API usage
    • z6uQbQ4.jpg
  • When closing 1 of the 3 gui's, you will be taken back to the Elixir Merchant Gui.
    • This is toggleable in the config under "settings"
  • Type /elixir with the permission "Elixir.command" to open the Elixir Merchant Menu.
    • You can choose 1 of 3 options to purchase or sell items
    • f7pk8Ox.png
  • Brewing GUI
    • ALL PRICES ARE CONFIGURABLE IN CONFIG
    • mBkuKLY.png
    • zqlpeRE.png
  • Potions GUI
    • ALL PRICES ARE CONFIGURABLE IN CONFIG
    • uWoyYMZ.png
    • lo8iHGu.png
  • Custom Potions GUI
    • You can make custom potions, via config, that give potion effects, for a specified duration, and level.
    • idPfCLU.png
    • vgLyLFw.png
    • You can make them splash potions by adding "splash: true" to your potion in the config.yml
  • Open the "Elixir Merchant" Gui via an Entity - using the "Elixir Merchant" custom name.
    • You can toggle Left and Right clicking in the config.yml under "settings"
    • P03rutA.png
    • JD8tI1w.png
Gef8kIf.png

  • Custom potions being compatible with splash potions
  • Player suggestion implementation (found here)
n2RdO2H.png

  • No refunds for this plugin
  • Do not -Redacted-!
  • No claiming ownership
jHXcQbQ.png

BlackSpigot General Chat
Rules Help Users
    BlackSpigot.com @ BlackSpigot.com: @BlackSpigot.com send pv I have responded
    Top