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 tofalse
to make all hits deal no damage.allowKnockback
: Set tofalse
to make all hits deal no knockback.
Usage
Import the module:
In your game’s initialize
function, include the module like this:
Combat will be enabled once the module is used.