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.
Parameters
Section titled “Parameters”allowDamage: Set tofalseto make all hits deal no damage.allowKnockback: Set tofalseto make all hits deal no knockback.
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.
