BuffedItems v1.2.0 - The "Active Logic & Upgrades" Update
v1.2.0 update introduces Active Abilities, a Scripting Engine, an Upgrade System, a Cost System, and major architectural refactors.
Buffed Items has a wiki now!
✨ New Features
- ⚡ Active Items (Right-Click Abilities):
- Items can now trigger actions when right-clicked!
- Cooldown System: RAM-based tracking with visual feedback (Chat, Title, Action Bar, and BossBar).
- Temporary Effects: Give potion effects or attributes for a specific duration upon use.
- Sound FX: Configure custom sounds for Success, Cooldown, and Cost Failure.
- Advanced Scripting Engine:
- Create complex mechanics using Logic Prefixes in your command chains.
- [chance:50]: Execute commands with a percentage chance.
- [delay:20]: Add delays (in ticks) between actions.
- [else]: Trigger commands only if the immediately preceding [chance] check failed.
- [console]: Run commands as console (supports execute at %player%).
- Visual Actions: [message], [title], and [actionbar].
- Chaining: Use ;; to run multiple logic blocks in a single line.
- Upgrade Station (/bi upgrade):
- A new GUI system allowing players to evolve their items (e.g., Sword Lvl 1 -> Sword Lvl 2).
- Risk System: Configure Success Rates and Failure Actions (LOSE_EVERYTHING, KEEP_BASE_ONLY, etc.).
- Recipe Browser: A built-in menu to view all available upgrades.
- Universal Cost System:
- Add requirements for Using Active Items or Upgrading Items.
- Supported Costs: MONEY (Vault), COINSENGINE, XP, LEVEL, HEALTH, HUNGER, ITEM (Vanilla), BUFFED_ITEM.
- Custom Feedback: Define specific failure messages for each cost.
- Advanced Customization:
- Custom Enchantment Support: Added support for third-party plugin enchantments (e.g., EcoEnchants) in the selector.
- Enchantment Search: Added a search bar to the Enchantment Selector GUI.
- New Flag: LOST_ON_DEATH (Item permanently vanishes on death).
- Permission Hierarchy: Active/Passive permissions now inherit from Main permission if not set.
️ Improvements & Refactors
- HookManager: Centralized all external dependencies (Vault, PAPI, CoinsEngine, ItemsAdder, Nexo).
- Global PAPI Support: Placeholders are now parsed in all chat messages, visuals, and item generation.
- Smart Config Updater: Intelligently updates config headers without resetting custom items.
- Validation: Added strict config checks for Upgrades, Costs, and Sounds to prevent silent failures.
- Startup Summary: Enhanced console output to show valid/invalid item counts.
- Editor Polish: Merged selector menus, added visual error indicators, and improved layouts.
Bug Fixes
- Critical Fix: Implemented deterministic UUIDs for active attributes to fix memory leaks and conflicts.
- GUI Fixes: Fixed NPE in PaginatedMenu and glass pane interactions.
- Config Fix: Fixed configuration migration resetting user-deleted default items.