HomeJavaModsAttributeEditor
AttributeEditor
Attribute Editor
This plugin provides a short library for editing item attributes, inaccessible via the Spigot API, along with a nice command based interface.

[​IMG]

Purpose
Many properties of Minecraft items are expressed as attributes and can be edited freely. Examples include attack damage, armor, luck, movement speed, and much more. Spigot allows you full access to attributes of entities. However, there is currently no way in the Spigot API to read or edit these attributes on items. This is where AttributeEditor comes in.

[​IMG]

Features
With the API, you can list attributes which are assigned to an item. You can also get a listing of the default attributes which apply when no explicit attributes are set. Furthermore, this API provides simple methods to add new attributes to an item, or remove them all. Example:

Code (Text):
ItemStack item;
List<ItemAttribute> attrs = ItemAttribute.of(item);
List<ItemAttribute> defs = ItemAttribute.defaultsOf(item);
new ItemAttribute(Attribute.GENERIC_LUCK, EquipmentSlot.HEAD,
   "my.custom.attribute", 10.0,
   Operation.ADD_NUMBER, UUID.randomUUID()).addTo(item);
For more information, see the source code. Beyond the API, there are 3 quick and easy commands to view, add, and remove attributes. I may or may not respond to feature requests. ;)

[​IMG]

Compatibility
AttributeEditor currently works ONLY on Spigot version 1.13. It will require a manual update because it accesses NBT data of items using NMS and OBC imports. Don't use this on any earlier version, and use with caution on any later version.
For older Spigot versions, scroll down.

[​IMG]

Installation
AttributeEditor requires no configuration and has no plugin dependencies. Simply drop the jar file in your plugins folder and restart your server.

Commands
There is only one command: /attred. Syntax:

Example commands
All the properties with an equals sign are optional. If absent, AttributeEditor will set a reasonable value, for example the slot based on item type, or in the case of UUID, pick a random value.

Permissions
There is only one permission for the main command.


Older versions

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

AttributeEditor is a free Minecraft Java mod. Compatible with Minecraft 1.13. Downloaded 844 times (via Spigot). Download it and open it directly in the game.

Explore more