"Mining Gas" Plugin

Discussion in 'Archived: Plugin Requests' started by Williscool98, Apr 12, 2013.

  1. Offline

    Williscool98

    Suggested Name: Mining Gas

    What I want: A plugin that makes mining ores a tad more... Interesting. When you break an ore block (while in survival mode), some potion particles may show up where the block was, and the player would recieve a potion effect. Thus symbolizing that you hit a gas pocket while mining. The potion effect varies from poison, to blindness, to regeneration. (List below).

    The plugin would generate a config file, that would let you change the percentage that the potion effect would occur, or disable it fully by making the percentage 0%. Here is the potions and default percentage:
    Poison 1: 5
    Poison 2: 5
    Slow 1: 8
    Blindness 1: 10
    Fatigue 1: 4
    Haste 1: 3
    Regeneration 1: 5
    Harm 1: 5
    Time: 30 seconds
    (The time will affect all the potion effects, except harm, for obvious reasons)

    If you are developing this, and want to change any of these values, feel free!

    Permissions: mgas.reload

    Commands: /mgas reload
    Reloads the plugin, and checks and implements changes made in the config

    Thanks for taking the time to read this!
     
  2. Offline

    Celeo

    Do you want 1 effect per block break to appear on the player, or more than one effect at a time?
    Do you want a player with a certain permission to be immune to the effects?

    The only objective to be completed is the duration of the effect - each different PotionEffectType's createEffect method seems to interpret the duration differently.

    Plugin complete.
    .JAR: https://dl.dropboxusercontent.com/u/11962432/Code/MiningGas.jar
    Code: https://github.com/Celeo/MiningGas
    Configuration:
    Commands:
    • /mininggas (perm: server OP or 'mgas.reload')

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  3. Offline

    Williscool98

    Wow! Very fast reply! Thanks!

    Celeo I just looked at the plugin.yml, and the description says it allows snowballs to do damage... Did you add that to the plugin?:eek:

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  4. Nah he probably just forgot the edit that line.
     
    Williscool98 likes this.
  5. Offline

    Celeo

    Plugin.yml fixed. Was working on multiple plugins for people last night.
     
    Williscool98 likes this.
  6. Offline

    hunajameloni

    Celeo Would you like to see my request? I think you are talented enough to do even one of my things on Criminal Craft.
     

Share This Page