CommandHelper

CommandHelper

46.5k Downloads

An attribute() function to use the attribute system.

LadyCailinBot opened this issue ยท 1 comments

commented

CMDHELPER-3170 - Reported by Nolz

Hi,

Vanilla Minecraft has an Attribute system that lets mapmakers modify various properties of items, mobs and players. This lets people create items that boost the health of whoever equips it, zombies that can follow you even if they're a thousand blocks away, and so on.

I've searched through the API a couple times, but I couldn't find a function that lets me change these attributes. I'd love to have support for this, as it would help a lot when creating custom mobs and items for minigames.

Thanks!

commented

Comment by PseudoKnight

There is no item attribute API, but these attributes can be applied to entities:

https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.html

You can currently do this with the CHNaughty extension, but it can be added to the core now.