Spear Cooldown Canceler (Hotbar Swap)
# Spear Cooldown Reset (Java Edition Mechanic) - Bedrock Edition
This is a lightweight **Behavior Pack (BP)** script designed specifically for **Minecraft Bedrock Edition (MCBE/MCPE)**. It introduces fluid combat mechanics for the **Spear**, allowing you to move rapidly by quickly switching hotbar slots while using the weapon.
---
### 🚨 Important Note: Required World Settings
*** To ensure the script loads correctly and detects your hotbar actions, you **must** enable the following **Experimental Feature** before entering the world:
1. 🧪 **Beta API** (Required for executing JavaScript and modifying item components)
*If this setting is not enabled, the script will fail to load entirely!*
---
### 🎬 Why choose this Add-on?
**This add-on** aims to replicate the Java Edition spear mechanics. In Java Edition, players can use the "lunge" enchantment and switch hotbar slots to cancel the **cooldown effect**, enabling rapid movement across the map. Consequently, using this add-on introduces significant tactical flexibility to **PvP combat**.
---
### ✨ Features
* **Java Edition Combat Feel:** Replicates the classic Java Edition slot-switching mechanic, bringing a professional-grade combat experience to Bedrock Edition.
* **Instant Cooldown Reset:** Eliminates stiff cooldown delays. Simply switch away from the spear and back again to fully reset its cooldown timer.
* **Script-Only Add-on:** A highly optimized, standalone script package that runs smoothly without impacting device performance.
---
### 🎮 How to Use
1. Hold the spear and perform an attack or throw.
2. Scroll to a different hotbar slot (switching away from the spear).
3. Immediately switch back to the spear to clear the cooldown state and attack again.
---
### 💾 Installation Guide
1. Download the `.mcpack` file from the "Files" tab.
2. Double-click or open the file to automatically import it into your game.
3. Enable this pack (Behavior Pack) in your world settings.