
JAVA PVP CORE
JAVA PVP CORE enhances Minecraft Bedrock Edition 1.21+ by replicating Java Edition's combat system, including attack cooldowns, sweep attacks, and critical hits. It automatically recognizes vanilla weapons and offers an API for seamless integration with custom addons.
Installation
To use Java PvP Core, add the addon to your Minecraft Bedrock behavior packs. It is recommended to also use the PvP Weapon Support addon for extended compatibility with weapons from other addons, enabling automatic weapon detection without requiring custom tags.
How to Use
The addon applies Java-style combat mechanics automatically to vanilla weapons. For custom weapons, add the following tags in the item JSON:
"jpvp:weapon""jpvp:dmg:X"where X is the damage value"jpvp:cd:Y"where Y is the cooldown duration in ticks
The cooldown bar and combat effects will then reflect these values accordingly.
Additionally, the addon supports integration through two methods:
- Script event override: Send a
jpvp:overridescript event with payload{ playerId, damage, cooldownTicks }to set custom weapon data. - Direct import: Import functions
setWeaponData(player, damage, cooldownTicks)andclearWeaponOverride(player)from the main script to programmatically manage weapon stats.
Requirements / Compatibility
- Minecraft Bedrock Edition 1.21 or higher.
- Compatible with multiplayer environments.
Key Features
- Attack Cooldown: Visual cooldown bar with 16 frames that changes color when an enemy is in range.
- Damage Scaling: Damage output scales with the attack charge percentage, matching Java Edition behavior.
- Armor Toughness: Applies accurate Java Edition damage reduction formulas, including diamond and netherite armor toughness.
- Sweep Attack: Java-like sword sweep area-of-effect triggered only when standing still, fully charged, and not sprinting.
- Enchantment Support: Factors in Sharpness, Smite, Bane of Arthropods, Strength, and Weakness for damage calculations.
- Critical Hits: Deals 1.5x damage and spawns particles when attacking while falling.
- Saturation Heal: Health regeneration mimics Java Edition saturation mechanics.
- Totem of Undying: Functions correctly with the addon's damage override.
- Shield Blocking: Detects active shields and negates damage accordingly.
- Vanilla Weapon Support: Automatically detects and applies correct Java combat stats for all vanilla weapons, including swords, axes, tridents, maces, and tools across all tiers.
- Custom Cooldown Icons: Supports weapon-shaped cooldown icons (sword, axe, red dagger) that visually charge and change color based on enemy proximity.
- Fire Sweep: Tag
jpvp:sweep:fireadds fiery sweep particle effects and sets swept mobs on fire for 3 seconds. - Addon Integration: Provides script events and direct API calls to allow other addons to override or clear weapon combat data dynamically.
Changelog Highlights
- Update 4.1.9: Fixed shield-related bugs.
- Update 4.1.8: Corrected attack swing animation direction and fixed Sulfur Cube entity issues.
- Update 4.1.7: Fixed damage bugs for spear and trident weapons.
- Update 4.1.4 and 4.1.3: Bug fixes for effects, cooldowns when breaking blocks, and damage calculations.
- Update 4.1.0: Improved mace functionality and added achievements-friendly features.
- Update 4.0.0: Critical fixes to prevent crashes, increased compatibility with other addons, and enhanced API support.