Combat Module
Overview
The combat module allows you to modify certain aspects of combat that are usually handled client-sided.
- Adds the ability to disable the miss penalty, on all versions 1.8 and above.
- Adds the ability to dig and use an item at the same time, like in 1.7, on all versions 1.8 and above.
Sample Code
Explore each integration by cycling through each tab, to find the best fit for your requirements and needs.
Apollo API examples. See General for common patterns and helpers.
Toggle Miss Penalty
public void setDisableMissPenalty(boolean value) {
this.combatModule.getOptions().set(CombatModule.DISABLE_MISS_PENALTY, value);
}Toggle Dig and Use
public void setAllowDigAndUse(boolean value) {
this.combatModule.getOptions().set(CombatModule.ALLOW_DIG_AND_USE, value);
}Available options
DISABLE_MISS_PENALTY- Whether the player gets a hit delay for a missed hit. Enabling this option may cause compatibility issues with anti-cheats.
- Values
- Type:
Boolean - Default:
false
- Type:
ALLOW_DIG_AND_USE- Whether the player can dig and use an item at the same time, like in 1.7. Applies to all versions 1.8 and above. Enabling this option may cause compatibility issues with anti-cheats.
- Values
- Type:
Boolean - Default:
false
- Type: