[4.7] API UPDATE - Item Glow, Commands, Performance.............
This build is only for 1.13+. Legacy builds are now free and are available on the Lite version.
This is more of a technical update which will allow me to add many cool new features in the future like item sharpening and a crafting recipes rework.
If other plugins which have built-in compatibility for MMOItems are throwing error logs on the console, make sure you tell the devs to update their methods since the API has changed
A LOT.
Feature Additions
- Commands Rework
- Added a GUI to input and manage commands easily
- New options:
- Run the command as OP (config option removed).
- Run the command from the console.
- Removed /mi sudoconsole as it is no longer needed.
- One cooldown for every command.
- Command delay is still a thing.
- There is now only one cooldown for every command on an item. (New option: Item Cooldown, makes things easier)
- Improved slashing and piercing attack effects!
- Changed mmoitems.op to mmoitems.admin.
- Gem Stones Rework
- Gems now support abilities.
- Gems and gem sockets now all have a color. You can only apply a gem onto an item if that item has a socket which corresponds to the gem color.
- Creating an item now applies the default material.
- Set Bonuses
- Now supports potion effects.
- Now supports attribute modifiers based stats!
- Added an option to prevent AdvancedEnchantments from being applied onto mmoitems.
- Item Glow & Hints
- When dropped, items can glow so players know where rare items are. The glow color is based on the item tier.
- Hints: the item name is displayed above the item entity.
- These options can be toggled on/off in the tiers config file.
Main API Changes
- New class - NBTItem which allows to cache the NMS item for way better performance and easily retrieve tags from it (+ NMSHandler rewrite).
- No more Stat enum, stat class instances are now stored in the StatManager class. You can now register extra stats using this class. These instances must extend ItemStat.
- Now uses JSon to store complex item data like abilities, perm effects, consumables effects, arrow particles, commands...
- An RPG inventory addon will soon be available for free.
- Items from MI no longer have any attribute modifiers. All of the attribute modifiers are calculated on every inventory update (might be improved in the future) which enables some new things:
- attribute-based stats support for set bonuses
- attribute-based stats support for RPGInventory
- Improved edition GUI performance by reducing the amount of items generated when opening it and when changing page.
Bug Fixes
- Fixed a bug with the LimitedUses addon of BossShopPro.
- Fixed an issue with bow mitigation.
- Fixed a bug with damage indicators.
- Ranged weapons now fully apply on-hit abilities and elemental attacks.
THINGS YOU NEED TO KNOW WHEN UPDATING
- The items you created are 100% safe, however make sure you change one thing to keep our configs up to date for the commands rework!
Make sure you change
command to
format in every of your item configs. This can be done faster using an editor like Notepad++ and replacing the "command:" pattern for "format:".
- Due to an item data storing change, your previously generated items will lose some of their functions such as commands, effects, permanent effects, abilities, and most importantly.. gem stones. Make sure you update these items.
- Make sure you rename your sets.yml config to item-sets.yml.
- Make sure you add this to your stats.yml:
Code (Text):
empty-gem-socket: '&a◆ Empty # Gem Socket'
filled-gem-socket: '&a◆ #'
item-cooldown: '&7■ &f#&7s Cooldown'