I think preserve potions backwards compatability and also update documentation.

This commit is contained in:
t00thpick1 2016-03-01 17:16:59 -05:00
parent f52d9feef8
commit 28a2b9668d
2 changed files with 27 additions and 29 deletions

View File

@ -122,7 +122,7 @@ public class PotionConfig extends ConfigLoader {
name = ChatColor.translateAlternateColorCodes('&', name); name = ChatColor.translateAlternateColorCodes('&', name);
} }
short dataValue = Short.parseShort(potion_section.getString("Data")); short dataValue = Short.parseShort(potion_section.getString("Data", potion_section.getName())); // Default to the section name for backwards compatability
Material material = Material.POTION; Material material = Material.POTION;
String mat = potion_section.getString("Material", null); String mat = potion_section.getString("Material", null);

View File

@ -40,48 +40,40 @@ Concoctions:
# #
# Settings for Potions # Settings for Potions
# #
# <data_value>: Data value used for identifying this potion # <identifier>: Identifier to reference by, backwards compatible to use as data values
# Name: <name> Custom display name for this potion (optional) # Name: <name> Custom display name for this potion (optional)
# Material: <material> Material for this potion, defaults to POTION
# Data: <data_value> Data value for this potion (if this is not present it will read from identifier)
# Lore: ["lore1","lore2"...] Custom lore for this potion (section is optional) # Lore: ["lore1","lore2"...] Custom lore for this potion (section is optional)
# Children: The potential children of this potion (section is optional) # Children: The potential children of this potion (section is optional)
# <INGREDIENT>: <NEW_DV> The ingredient used, and resultant potion's new data value # <INGREDIENT>: <NEW_IDENTIFIER> The ingredient used, and resultant potion's identifier
# Effects: List of strings for the potion's effects (section is optional) # Effects: List of strings for the potion's effects (section is optional)
# - "<POTION_EFFECT> [EFFECT_TIER] [DURATION_TICKS]" # - "<POTION_EFFECT> [EFFECT_TIER] [DURATION_TICKS]"
# #
# DataValues - These potions follow the normal data value pattern except for bits 8-12:
# Bits 0-3: Liquid Color (http://minecraft.gamepedia.com/Data_values#Potions)
# Bit 4: (Unused)
# Bit 5: Power
# Bit 6: Extended
# Bit 7: (Unused)
# Bits 8-12: Custom Status Effect (http://minecraft.gamepedia.com/Data_values#Status_effects)
# Bit 13: Can become splash
# Bit 14: Splash
# Bit 15: (Unused)
### ###
Potions: Potions:
### NON-EFFECT POTIONS ##################################################### ### NON-EFFECT POTIONS #####################################################
WATER: # Water Bottle WATER:
Name: Water Bottle
Material: POTION Material: POTION
Data: 0 Data: 0
Children: Children:
BLAZE_POWDER: MUNDANE_POTION BLAZE_POWDER: MUNDANE_POTION
FERMENTED_SPIDER_EYE: 8200 # Potion of Weakness FERMENTED_SPIDER_EYE: 8200
GHAST_TEAR: 8192 # Mundane Potion GHAST_TEAR: MUNDANE_POTION
GLOWSTONE_DUST: 32 # Thick Potion GLOWSTONE_DUST: THICK
MAGMA_CREAM: 8192 # Mundane Potion MAGMA_CREAM: MUNDANE_POTION
NETHER_STALK: 16 # Awkward Potion NETHER_STALK: AWKWARD
REDSTONE: 64 # Mundane Potion Extended REDSTONE: MUNDANE_POTION_EXTENDED
SPECKLED_MELON: 8192 # Mundane Potion SPECKLED_MELON: MUNDANE_POTION
SPIDER_EYE: 8192 # Mundane Potion SPIDER_EYE: MUNDANE_POTION
SUGAR: 8192 # Mundane Potion SUGAR: MUNDANE_POTION
16: # Awkward Potion AWKWARD:
Material: POTION Material: POTION
Data: 0 Data: 16
Children: Children:
APPLE: 5376 # Potion of Health Boost APPLE: 5376 # Potion of Health Boost
BLAZE_POWDER: 8201 # Potion of Strength BLAZE_POWDER: 8201 # Potion of Strength
@ -105,15 +97,21 @@ Potions:
WATER_LILY: 8205 # Potion of Water Breathing (Minecraft 1.6) WATER_LILY: 8205 # Potion of Water Breathing (Minecraft 1.6)
'RAW_FISH:3': 8205 # Potion of Water Breathing (Minecraft 1.7) 'RAW_FISH:3': 8205 # Potion of Water Breathing (Minecraft 1.7)
32: # Thick Potion THICK:
Material: POTION
Data: 32
Children: Children:
FERMENTED_SPIDER_EYE: 8200 FERMENTED_SPIDER_EYE: 8200
64: # Mundane Potion Extended MUNDANE_POTION_EXTENDED:
Material: POTION
Data: 64
Children: Children:
FERMENTED_SPIDER_EYE: 8264 FERMENTED_SPIDER_EYE: 8264
8192: # Mundane Potion MUNDANE_POTION:
Material: POTION
Data: 8912
Children: Children:
FERMENTED_SPIDER_EYE: 8200 FERMENTED_SPIDER_EYE: 8200
SULPHUR: 16384 SULPHUR: 16384