Modify Break Speed (Power Type)

Modifies how fast the player that has the power can break blocks.

Modifies how fast the player that has the power can break blocks.

Type ID: apoli:modify_break_speed

Fields

FieldTypeDefaultDescription
block_conditionBlock Condition TypeoptionalIf specified, the modifier(s) will only apply to the blocks that fulfills this condition.
modifierAttribute ModifieroptionalIf specified, this modifier will be applied to the break speed.
modifiersArray of Attribute ModifiersoptionalIf specified, these modifiers will be applied to the break speed.
hardness_modifierAttribute ModifieroptionalIf specified, this modifier will be applied to the effective hardness value of the block while calculating the block’s break speed.
hardness_modifiersArray of Attribute ModifiersoptionalIf specified, these modifiers will be applied to the effective hardness value of the block while calculating the block’s break speed.

Examples

{
	"type": "apoli:modify_break_speed",
	"block_condition": {
		"type": "apoli:block",
		"block": "minecraft:netherrack"
	},
	"modifier": {
		"operation": "multiply_base",
		"value": 0.5
	}
}

This example will allow the player to break Netherrack 50% faster than usual.

{
	"type": "apoli:modify_break_speed",
	"modifier": {
		"operation": "multiply_base",
		"value": -0.9
	},
	"hardness_modifiers": [
		{
			"operation": "max_total",
			"value": -1.0
		},
		{
			"operation": "min_total",
			"value": 0.1
		}
	]
}

This example will make the player break blocks 90% slower than usual, which also applies to blocks that can be mined instantly (which is handled by assigning a minimum value of 0.1 if the hardness value of the block is 0, which is the case for such blocks.)