Config
# ######### Effects ######### # 0 - Nausea (Screen Spin) # 1 - Zoom-In & Walk Slow # 2 - Zoom-Out & Walk Fast # 3 - Blindness # 4 - Hunger # 5 - High Jump # 6 - Sickness & Slower Hitting # 7 - Drunk (Word Scramble) # 8 - Instant Healing # 9 - Regeneration # 10 - Resistance # 11 - Fire Resistance # 12 - Water Breathing # 13 - Invisibility # 14 - Night Vision # 15 - Poison # 16 - Wither Poison # 17 - Absorption (NOTE: If you use higher numbers on Absorption MaxPower, your screen will fill with golden hearts! :) ) # 18 - Saturation # ######## Negatives ######## # 0 - None # 1 - Puke # 2 - Catch on fire # 3 - Heart Attack # 4 - Overdose # ######### Particles ######## # # ## NOTE: These may not all work! Try out different things ## # # - Explode # - LargeExplode # - HugeExplosion # - FireworksSpark # - Bubble # - Splash # - Wake # - Suspended # - DepthSuspend # - Crit # - MagicCrit # - Smoke # - LargeSmoke # - Spell # - InstantSpell # - MobSpell # - MobSpellAmbient # - WitchMagic # - DripWater # - DripLava # - AngryVillager # - HappyVillager # - TownAura # - Note # - Portal # - EnchantmentTable # - Flame # - Lava # - Footstep # - Cloud # - RedDust # - SnowballPoof # - SnowShovel # - Slime # - Heart # - Barrier # - IconCrack # - BlockCrack # - BlockDust # - Droplet # - Take # - MobAppearance # ########################### Effects: Nausea: MaxPower: 100 MinPower: 10 MaxTime: 50 MinTime: 15 SlowWalk: MaxPower: 100 MinPower: 10 MaxTime: 50 MinTime: 15 FastWalk: MaxPower: 100 MinPower: 10 MaxTime: 50 MinTime: 15 Blindness: MaxPower: 1000 MinPower: 100 MaxTime: 50 MinTime: 15 Hunger: MaxPower: 1000 MinPower: 100 MaxTime: 50 MinTime: 15 HighJump: MaxPower: 15 MinPower: 1 MaxTime: 50 MinTime: 15 SlowHit: MaxPower: 1000 MinPower: 100 MaxTime: 50 MinTime: 15 Healing: MaxPower: 1000 MinPower: 100 MaxTime: 50 MinTime: 15 Regeneration: MaxPower: 1000 MinPower: 100 MaxTime: 50 MinTime: 15 Resistance: MaxPower: 1000 MinPower: 100 MaxTime: 50 MinTime: 15 FireResistance: MaxPower: 1000 MinPower: 100 MaxTime: 50 MinTime: 15 WaterBreathing: MaxPower: 1000 MinPower: 100 MaxTime: 50 MinTime: 15 Invisibility: MaxPower: 1000 MinPower: 100 MaxTime: 50 MinTime: 15 NightVision: MaxPower: 1000 MinPower: 100 MaxTime: 50 MinTime: 15 Poison: MaxPower: 1000 MinPower: 100 MaxTime: 50 MinTime: 15 WitherPoison: MaxPower: 1000 MinPower: 100 MaxTime: 50 MinTime: 15 Absorption: MaxPower: 4 MinPower: 1 MaxTime: 50 MinTime: 15 Saturation: MaxPower: 1000 MinPower: 100 MaxTime: 50 MinTime: 15 Drunk: MaxTime: 50 MinTime: 15 Drugs: # Basic Format: # MATERIAL_NAME: # Effect: #,#,# # Negatives: #,#,# # NegChance: # # Type: Random/All/None # DrugName: "&aColored Drug Name" # Message: "This message is sent when taking the drug" # Particles: # ParticleName: # Repeat: true/false # Interval: # of ticks to replay # Amount: # of particles displayed # Location: Body/Head/Feet # Visible: true/false # ParticleTwoName: # Repeat: true/false # Interval: # of ticks to replay # Amount: # of particles displayed # Location: Body/Head/Feet # Visible: true/false SUGAR: Effect: 2,5 # The effects that will be given for the drug (List of them above) Negatives: 1,3 # The negative effects that will be given for the drug (List above) NegChance: 30 # Chance (X/100) that negatives will be given when taking the drug Type: Random # Type of application for the drugs (Random = Choose 1 random effect; All = Do all effects; None = No effects) DrugName: "&fCocaine" # The name of the drug INK_SACK:2: Effect: 0,4 Negatives: '0' Type: All DrugName: "&2Marijuana" Particles: LargeSmoke: Repeat: false # If the particles should repeat while on the drug (or only once) Amount: 50 # Amount of particles to display per second Location: Head # Location can be Body, Head, or Feet Visible: true # Whether or not others can see the particles RED_MUSHROOM: Effect: 0,1,3,6,14 Negatives: 1,2,3,4 NegChance: 5 Type: Random DrugName: "&cShrooms" Message: "&7You're about to trip balls" # Optional message to be sent when taking the drug Particles: EnchantmentTable: Repeat: true Amount: 20 Location: Head Visible: false POTION: Effect: 2,5,7 Negatives: '1' NegChance: 10 Type: Random DrugName: "&bVodka" Particles: DripWater: Repeat: false Amount: 50 Location: Head Visible: false COOKIE: Effect: 0,2,4,5 Negatives: '0' Type: All Smoke: true DrugName: "&6Pot Cookies" SPIDER_EYE: Effect: 0,1,3,6 Negatives: 1,2,3,4 NegChance: 25 Type: All DrugName: "&5Wild &cShrooms" MustSneak: true Particles: Smoke: Repeat: false Amount: 15 Location: Body Visible: true PAPER: Effect: 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 Negatives: 1,3 NegChance: 5 Type: All DrugName: "&2L&eS&4D" FEATHER: Effect: 2,5 Negatives: 1,3 NegChacne: 10 Type: All DrugName: "&7Ecstasy" Particles: HappyVillager: Repeat: false Amount: 20 Location: Feet Visible: false Heart: Repeat: true Interval: 5 # How often should particles play (in ticks - 20 ticks = 1 second) Amount: 15 Location: Body Visible: true # The amount of drugs in the config are NOT set in stone. Feel free to add or remove to the list of drugs here! Chat: Broadcast: Burning: "&c* %playername% bursts into flames" Death: "&c* %playername% OD'd - Don't do drugs kids!" Puke: "&2* %playername% violently pukes his guts out" HeartAttack: "&c* %playername% had a heart attack!" Self: TakeDrugs: "&7You have taken %drugname%&7!" Sober: "&7You begin to feel sober!" Cooldown: "&7You have to wait &a%time% &7more seconds to take another drug" Errors: NoPerms: "&cYou don't have permission for that!" Options: DrugCooldown: 0 # How long players should wait to take drugs again Worlds: '*' # Worlds where drugs can be used (* = All; Separate with comma) AutoUpdateChecker: true AutoUpdateDownload: false SaveOldConfigs: true # Save old config files in plugins/DrugMeUp/Old_Configs/ EnableBroadcastMessages: true EnableNegativeEffects: true EnableJumpProtection: true # High jump on drug = no fall damage while on drug EnablePlaceProtection: true # Allow/disallow placable drugs to be placed when taking them DO_NOT_TOUCH: 1.0.0
Effects -
- This is a list of all the effects you can use, change the MaxTime/MinTime to adjust how short/long you want the effects to be and set the MaxPower/MinPower to adjust how strong you want the effects to be (ex: set HighJump to 50 and see how high you jump compared to 15)
Drugs -
- The material names for the drugs you want to use. You can find a complete list in the materialList.txt generated when you first load the plugin or here. You can add however many/few drugs as you want. I just put those six default drugs in to give you a starting point. And data values are supported with a colon! Ex. 35:5
- Create a new drug in this format:
'MaterialName<:Damage Value>': Effect: <effect#>,<effect#>,etc. Negatives: <negative#>,<negative#>,etc. NegChance: X (Only need 'NegChance' when you have negatives enabled) Type: Random/All Smoke: true/false DrugName: <Name of Drug> *MustSneak: true/false *Message: Any message here, can include any variable. (%drugname%, colors, %playername%)
* These two are optional, Use MustSneak (If it's an edible/drink) to make it so the player has to or doesn't have to sneak and Message if you want to add a custom message to that drug.
- Put that right under the last drug in the list of drugs.
Effects -
- There are 18 configurable effects that you can apply to your drugs. (See above for the list of effects)
- Effects are separated by commas. Ex: "Effect: 1,2,3" or "Effect: 1, 2, 3"
- Below the negatives in the config, it says "Type:" and type can either be "Random", "All", or "None". If you choose random, it will choose 1 effect randomly out of the list of effects you have listed. If you choose "all" it will apply all effects to the player after using the drug. If you choose "none" the item will be considered a drug, but will not apply any effects or be consumed. (Good in certain cases)
Negatives -
- There are 4 configurable negative effects that you can apply to your drugs. (See above for the list)
- Negatives are seperated by commas. Ex: "Negatives: 1,3" or "Negatives: 1, 3"
- Negative chances are based on the number you set for "NegChance: X" in the config for the drug. This is out of 100%
Particles -
- This is an option drug node, meaning you can choose to leave it out of any drugs you make if you wish to do so.
- Particles have 5 possible subnodes:
- Repeat - True/False - Whether or not the particle should repeat the entire duration of the drug.
- Interval -
# - How many ticks between particle spawns (20 ticks = 1 second) - Amount -
# - How many particles should spawn per interval - Location - Head/Body/Feet - Where the particles should be spawned
- Visibility - True/False - Whether other players can see the particles or not (make players hallucinate)
- Look at the formatting in the default config if you want to set up your own particles correctly, any of the particles listed at the top of the config can be used.
Chat -
- The options in the chat section will change what messages are sent from the plugin. This includes broadcasted messages, self messages, and error messages.
EnablePlaceProtection: true # Allow/disallow placable drugs to be placed when taking them
Options -
- DrugCooldown: Set a cooldown between drug uses
- Worlds: This will set the allowed worlds that drugs can be used in. (Use a '*' for all drug types)
- AutoUpdateChecker: This toggles checking for updates on server starts.
- AutoUpdateDownload: This toggles downloading updates on server starts.
- EnableNegativeEffects: This allows you to toggle burning / dying / puking up your inventory.
- EnableEffectMessages: This allows you to toggle the broadcasting of messages when you o/d or burst up in flames or puke up your inventory.
- EnableJumpProtection: This allows you to toggle the damage taken from hitting the ground when you have the super jump effect.
- EnablePlaceProtection: This allows you to toggle block placement protection from block drug types
- SaveOldConfigs: This toggles the saving of old configs when new ones are generated.
- DO_NOT_TOUCH: This means what it says. Don't change that number. If you happen to change it, your entire config will regenerate.
All text field options can be customized 100% with colors and variables. Colors are the same as minecraft color codes. %playername% will be replaced with the players name. %drugname% will be replaced with the name of the drug the player took.