2.2.0
WARNING: Make sure server and clients use the same version of the mod! (Clients with Better Combat 2.1.X will not function properly on servers with Better Combat 2.2.X)
Improve Friend or Foe logic:
- Configurable relation to owned (tamed) pets
- Configurable relation to teammates (new default is NEUTRAL)
- Add entity type tag based relations (server config >
player_relation_tags
) - Add serverside checking of entity relations
Implications of new defaults:
- When not using teams, pets of other players do not receive damage from cleaving
- When using teams, disabling friendly fire (
/team modify my_team friendlyFire false
) will prevent all kinds of damage against teammates and pets of teammates
Other changes:
- Smart swing thru grass is now enabled by default
2.1.5
- Add smart Swing Thru Grass client config (disabled by default), to destroy blocks when no targets in range
- Fix unresolved (compact) weapon attribute containers, referencing them would cause a crash #478
- Fix weapon attributes with zero attacks (resulting due to conditions) crashing #472
2.1.2
- Improved compatibility with Entity Interaction Range attribute
- Better Combat weapon attribute range is now only applied when a weapon has no modifier for vanilla range
- Added function to reformat
Entity Interaction Range
toAttack Range
on weapon tooltips
- Knockback reduction for fast attacks is now stronger (configurable)
- Added block hit sound upon swinging at blocks
2.1.0
Functional Changes:
- Fix Combat Roll not cancelling attack properly
- Increase attack range (slightly) on all built-in weapon attribute presets
- Improve idle animation handling with server side logic
- Add registry encoding compression to avoid transmission issues
- Add support
player.entity_interaction_range
attribute, to serve as attack range - Add support for weapon attributes resolved from item data component. For example:
/give @p minecraft:wooden_sword[bettercombat:preset_id="bettercombat:claymore"]
API Changes:
- Added
WeaponAttributes.range_bonus
attribute, to add to the base attack range - Deprecated
WeaponAttributes.attack_range
property specifying absolute attack range