Compatibility
Minecraft: Java Edition
Platforms
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
NOTICE: The pack does NOT fully work on 1.21.4 and older. Do not come complaining to me if the pack doesn't work when you're not on the latest version of the game. Some parts work, some don't, like the config menu doesn't work at all on 1.21.4.
This 1.21.5 datapack aims to restore the pre-combat update mechanics as much as possible using a datapack. The datapack restores sword blocking, removes the attack speed mechanic, restores the old axe damages, disables the offhand, and so much more! More is planned to be implemented later.
Customizability
Each mechanic is togglable. More customizability is planned to be added in the future. To access the chat-based configuration menu, run:
/function oldcombat:config
Features
- Restore Sword Blocking
- If enabled, gives all swords the ability to block like a shield. The mechanic works exactly how it did pre-combat update, halving the damage taken from most damage types, no matter which direction it hits you at. No durability damage is applied to the sword when you block an attack. The way it does this is it gives all swords that are in any players' mainhand the
blocks_attacks
item component, with the parameters set to make it work exactly how sword blocking did pre-combat update. Turning the mechanic off in the config removes theblocks_attacks
item component from all swords that are in any players' mainhand. - IMPORTANT: the ability to block will stay on all swords that have been affected by this setting should the pack get removed, so removing the pack will not remove the sword blocking ability on affected swords. It is recommended you use the pack to remove the sword blocking ability by turning sword blocking off and have players hold affected swords in their mainhand to remove the ability before uninstalling the pack.
- If enabled, gives all swords the ability to block like a shield. The mechanic works exactly how it did pre-combat update, halving the damage taken from most damage types, no matter which direction it hits you at. No durability damage is applied to the sword when you block an attack. The way it does this is it gives all swords that are in any players' mainhand the
- Disable Offhand
- If enabled, will prevent items from being in a player's offhand. If an itemstack (any item of any amount and type) is detected to have been moved into a player's offhand, the player immediately drops the itemstack on the ground as if the player pressed ctrl + their drop key on the itemstack. Basically turns the Swap Item with Offhand key into Ctrl+Q.
- Disable Attack Cooldown
- Disables the attack cooldown mechanic for all players. Simple as that.
- IMPORTANT: the attack cooldown mechanic will stay removed for all players that have been affected by this setting should the pack get removed, so removing the pack will not re-add the attack cooldown on affected players. It is recommended you disable the option to re-add the cooldown to affected players. If a player is still affected after removing the pack, run
/attribute (player) attack_speed modifier remove oldcombat:removecooldown
to manually re-add the attack cooldown mechanic.
- Old Tool Damage
- Reverts the attack damage of tools (specifically axes) to their pre-1.9 values.
- Notice: If you disable this setting or remove the pack while a player is holding an axe, the player needs to switch from and back to the axe for the damage to return to normal.
- Sprinting Crits
- Allows for critical hits and knockback (sprinting) attacks to happen at the same time by emulating the effects of a critical hit during a knockback attack.
- Integration of My Sprinting Crits Datapack
- Disable Sprinting
- Currently the only setting that is disabled by default.
- Makes it so you go at walking speed while sprinting by removing the attribute modifier that sprinting applies to the movement speed attribute. This doesn't prevent the sprint-jump speed boost, knockback attacks, hunger loss from sprinting, etc. This also can be bypassed by hitting a mob, as it causes the player to start sprinting again without telling the server which applies the attribute modifier for sprinting.
- Prevents Sprinting Crits from being used.
- This is because Sprinting Crits uses the attribute modifier that this setting removes to determine if you're sprinting to decide if it should emulate critical hits or not.
- Disable Knockback Resistance
- Disables all forms of Knockback Resistance.
- As a side effect, this allows Iron Golems, Wardens, and other mobs that would otherwise be immune to or resists knockback, to take full knockback.
- Disables all forms of Knockback Resistance.
- Knockback Effective In Air
- Mobs (currently not players as /data cannot modify player data) will take the same knockback in the air as they would on the ground. This causes mobs to go upwards a bit when hit, like on the ground.
- This will eventually support players through the use of a Fabric mod that is currently awaiting approval by the Modrinth Staff that allows for both player entity data AND velocity manipulation.
- You can change the vertical air knockback with the setting right below this one in the config.
- Fishing Rod Knockback
- Makes fishing bobbers from fishing rods deal knockback to players and mobs. It does this by dealing 0.01 damage to entities that the bobber hooks onto.
- Known issue: the fishing bobber will knock entities back when they step over the bobber if it's on the ground. This will be fixed next update.
- Fishing Bobbers Go Further
- Makes fishing bobbers go further.
- Controllable with the setting below it. Kinda hard to miss because it takes up 3 lines of chat because it needs 1 to say what the setting is, another for the horizontal speed, and one more for the vertical speed.
Old Regeneration- Coming soon ;)
- Also requires the previously mentioned Fabric mod.
Notes
This pack was created with the help of the MC-Build project. Without the project this pack wouldn't have been as easy to make. You can see the MC-Build Github Repository here: https://github.com/mc-build/mcb