config-file/Guide to adding block types
Guide for Adding More Block Types
Adding more block types to your config file adds a lot of functionality to this plugin. Just follow these 4 easy steps and you'll be breaking other block types in no time.
Step 1
Find the section in your config called 'GLASS'. It should be the first thing under 'BreakableBlocks'. Select everything under that section.
Step 2
Make sure you have selected everything you see here, and copy it.
GLASS: Types: All: BreakType: Hitting: Player: Enabled: true HitsTaken: 3 ItemsEnabled: - IRON_SHOVEL Falling: Player: true Mob: true Sprinting: Player: true Projectile: Arrow: Player: true Mob: true SetType: Material: AIR DataValue: 0 Ranges: MinimumFallDistance: 5 MaxBlocksBroken: 0 Regeneration: Enabled: true Chance: 15 TimeBeforeRegenStarts: 60 AssociatedBlocks: - NONE DropsBlocks: false
Step 3
Now go to the bottom of your config file and make a new line. Hit the space bar twice and then paste in the fields from above.
So you should now have;
BreakableBlocks: GLASS: Types: All: BreakType: Hitting: Player: Enabled: true HitsTaken: 3 ItemsEnabled: - IRON_SHOVEL Falling: Player: true Mob: true Sprinting: Player: true Projectile: Arrow: Player: true Mob: true SetType: Material: AIR DataValue: 0 Ranges: MinimumFallDistance: 5 MaxBlocksBroken: 0 Regeneration: Enabled: true Chance: 15 TimeBeforeRegenStarts: 60 AssociatedBlocks: - NONE DropsBlocks: false GLASS: Types: All: BreakType: Hitting: Player: Enabled: true HitsTaken: 3 ItemsEnabled: - IRON_SHOVEL Falling: Player: true Mob: true Sprinting: Player: true Projectile: Arrow: Player: true Mob: true SetType: Material: AIR DataValue: 0 Ranges: MinimumFallDistance: 5 MaxBlocksBroken: 0 Regeneration: Enabled: true Chance: 15 TimeBeforeRegenStarts: 60 AssociatedBlocks: - NONE DropsBlocks: false
Step 4
Simply rename 'GLASS' to whatever block type you are wanting to add and then change its settings in the fields below it. The block type must be in all caps and follow the formatting here. If you do not follow this formatting, it will not work.
Guide for Specifying Block Data Values
Specifying data values is usually not necessary, but for blocks like smooth brick, which has multiple types, and a few other things, it is.
Type
You can specify the a data value for a block using similar steps to those defined above, except rather than grabbing and copying the entire GLASS section, all you want to grab is the section named 'All'. When you paste it back, make sure it's 6 spaces away from the left margin. For example, if you only wanted cracked stone brick to have separate settings from the other types of stone brick, you would copy the entire 'All' section, paste it, and rename it '2', since this is the data value for cracked brick. When EpicGlass is reading the config file, it will first search for the data value of the block, and if its not there it will then check for 'all'. The above mentioned format would look like this.
BreakableBlocks: SMOOTH_BRICK: Types: All: BreakType: Hitting: Player: Enabled: true HitsTaken: 3 ItemsEnabled: - IRON_SHOVEL Falling: Player: true Mob: true Sprinting: Player: true Projectile: Arrow: Player: true Mob: true SetType: Material: AIR DataValue: 0 Ranges: MinimumFallDistance: 5 MaxBlocksBroken: 0 Regeneration: Enabled: true Chance: 15 TimeBeforeRegenStarts: 60 AssociatedBlocks: - NONE DropsBlocks: false 2: BreakType: Hitting: Player: Enabled: true HitsTaken: 3 ItemsEnabled: - IRON_SHOVEL Falling: Player: true Mob: true Sprinting: Player: true Projectile: Arrow: Player: true Mob: true SetType: Material: AIR DataValue: 0 Ranges: MinimumFallDistance: 5 MaxBlocksBroken: 0 Regeneration: Enabled: true Chance: 15 TimeBeforeRegenStarts: 60 AssociatedBlocks: - NONE DropsBlocks: false
Associated Blocks
You can very simply add specific data values to this field by typing a single space, and then the desired data value. These fields use the same formatting as the main BreakableBlocks heading.
AssociatedBlocks: - SMOOTH_BRICK 2 - SMOOTH_BRICK 0