OldCombatModule
OldCombatModule is a reimplementation of Minecraft combat features. It handles damage and knockback similar to vanilla Minecraft. It does not include most of the newer 1.9+ combat mechanics, such as shields and the attack cooldown. However, it does include the increased axe damage found in newer versions.
Parameters
allowDamage: Set tofalseto make all hits deal no damage.allowKnockback: Set tofalseto make all hits deal no knockback.
Usage
Import the module:
import com.bluedragonmc.server.module.combat.OldCombatModuleIn your game’s initialize function, include the module like this:
use(OldCombatModule(allowDamage = true, allowKnockback = true))Combat will be enabled once the module is used.