Block Damage
Last updated
Last updated
Block Damage is used for Explosion and in WeaponMechanicsCosmetics.
The chance to drop the broken block as an item for players to pick up. Defaults to 0%
.
The amount of damage points to deal to the block. Defaults to 1
.
Defines how many hits it takes to break blocks. This can be overridden per block in Blocks.
Defines how the block should show damage:
CANCEL
-> Don't apply any damage to the block.
CRACK
-> Show block crack animation, but do not break the blocks.
BREAK
-> Show block crack animation, and break block when fully damaged.
This can be overridden per block in Blocks.
This can be overridden per block in Blocks.
If you want to replace blocks with data (for example, stairs), go into:
server -> plugins -> WeaponMechanics -> config.yml
And set:
Defines the list of block overrides.
Format is:
<block to break> <CANCEL/CRACK/BREAK> <shots to break> <mask>
Examples:
BEDROCK CANCEL
-> Prevents bedrock from being broken.
DIRT BREAK
-> Destroys dirt in 1 shot.
OBSIDIAN CRACK 5
-> Shows the crack animation for obsidian, but doesn't break.
GRAY_STAINED_GLASS BREAK 1 DIRT
-> Destroys gray glass in 1 shot and replaces it with dirt.
$glass BREAK 2
breaks all glass block types in 2 shots.
This is a standard example that the average server should use. This example will break all blocks (except for non-breakable blocks):
Using Drop_Broken_Block_Chance
with will cause duplication.
Defines the used to replace the block. Defaults to AIR
.