HomeJavaModsVitalVials
VitalVials

VitalVials Plugin

VitalVials is a unique Minecraft plugin that allows players to purchase and manage in-game effects using their health. With a fully customizable configuration, server owners can create a balanced between risk and reward, where players must carefully consider the cost of powerful effects against their own vitality.

Features

Installation

  1. Download the latest version of VitalVials from the releases page
  2. Place the VitalVials.jar file in your server's plugins/ directory
  3. Restart your server
  4. Configure the plugin to your liking in plugins/VitalVials/config.yml and plugins/VitalVials/effects.yml and plugins/VitalVials/activation.yml
  5. Use /vv reload to apply changes without restarting

Commands

Main Command

Subcommands

Permissions

Permission Description Default
vv.admin Full access to all commands op
vv.reload Allows reloading the plugin op
vv.shop Access to the effect shop op
vv.buyEffect Allows buying effects op
vv.viewstatus View own effect status op
vv.scoreboard Access to scoreboard customization op
vv.refundEffect Refund purchased effects op
vv.removedata Remove player data op

Configuration

VitalVials is highly configurable through the config.yml, effects.yml and activation.yml file. Here are the main sections:

Main Configuration

Click to expand The configuration file (config.yml) allows you to customize several aspects of the plugin:
effects: effects.yml # Path to the effects.yml file that contains the effects list
activation: activation.yml # Activation settings
maxHP: # max HP
  enabled: true # Enable / Disable max HP, when enabled players can't get more HP when trying to Refund Effect, so player can't get more HP that you set
  value: 20 # Max HP (Health Points)
minHP: 2 # Min HP (Health Points) to allow player not buying effect when HP is same or less than this
scoreboard: # scoreboard settings
  defaultShowScoreboard: true # Show scoreboard on right side by default (per player can disable it on their own using command if you give them access)
  periodUpdate: 10 # period to update scoreboard (in seconds)
permissionsAllPlayer:
  reload: false # Allow reload command for all players
  shop: true # Allow shop command for all players
  buyEffect: true # Allow buyEffect command for all players
  viewStatus: true # Allow viewStatus command for all players
  scoreboard: true # Allow scoreboard command for all players
  refundEffect: true # Allow refundEffect command for all players
  removeData: false # Allow removeData command for all players

Effect Configuration

Each effect can be configured with the following options:

Activation Configuration

Each item can be configured with the following options:

Effect Customization

Effects are defined in the effects.yml of the plugin folder. Example:

Click to expand The configuration file (effects.yml) allows you to customize all effects in the plugin:
speed: #key of the effect section, you can change it to anything you want, you can also use same effect to another key with different activation config
  enabled: true # enable/disable the effect
  name: "§bSpeed" # The name of the effect
  effect: "SPEED" # Name of the effect to give (default), don't change if you don't know what it is
  lore: "Get more speed" # lore of the effect (Informational only)
  maxLevel: 2 # max amplifier/level when upgrading the effect
  particles: false # enable/disable particles when getting effect
  saveEffectData: true # save effect data to the player data (If “false”, the effect can only be activated when “autoActivate” is true and can only be used once and player can't upgrade it)
  priceType: MAX_HEALTH # the type of price when buying the effect (MAX_HEALTH to buy using MAX HEALTH player or HEALTH to buy using HEALTH player)
  refundPercentage: 50 # the percentage of the HP refundable (calculate from level 1 effect) after buying the effect (-1 to disable refund)
  autoActivate: true # auto activate the effect, if true effect will be auto activated after buying
  # if false you need set it in activation config
  #=====[array section]=====
  # [<first upgrade level>, <second upgrade level>, ...]
  durationPerUpgrade: [-1, -1] # duration of the effect per upgrade, -1 for infinite (in seconds)
  cooldownPerUpgrade: [0, 0] # cooldown when using the effect per upgrade (in seconds)
  costPerUpgrade: [10, 18] # cost when buying the effect per upgrade (Health Points)

Activation Customization

You can customize activation of effects in the plugin by editing the activation.yml file.

Click to expand The configuration file (activation.yml) allows you to customize activation of effects in the plugin:
ALL_ITEMS: # Effects to activate to your own with all items or no item
  rightClick: [] # Effects to activate to your own on right click with all items or no item
  leftClick: [] # Effects to activate to your own on left click with all items or no item
  YouAreHittingEnemy: [] # Effects to activate when you are hitting an enemy with all items or no item
  enemyHitYou: [poison, wither, darkness] # Effects to activate when an enemy hits you with all items or no item
SWORD: # Item name (all type of swords)
  rightClick: [resistance] # Effects to activate to your own on right click with the item
  leftClick: [] # Effects to activate to your own on left click with the item
  YouAreHittingEnemy: [nausea, weakness, weaving, oozing, infested] # Effects to activate when you are hitting an enemy with the item
  enemyHitYou: [slowness, mining_fatigue] # Effects to activate when an enemy hits you with the item

Scoreboard

The scoreboard can be toggled with /vv scoreboard and customized with these options:

Support

For support, please open an issue on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Crafted by b4n9z

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more