immediate
returns the direct attacker.
actual
returns the owner of the damage.
Original2024/11/10Less than 1 minute
immediate
returns the direct attacker.
actual
returns the owner of the damage.
Using Item.of("diamond_sword", "{damage:50}")
as an example:
.weakNBT()
If the item's NBT contains {damage:50}
, it can be used.
Examples:
{damage:50}
{damage:50, display:"Sword"}
{display:"Sword"}
.strongNBT()
If the item's NBT only contains "{damage:50}"
, it can be used.
Examples:
{damage:50}
{damage:50, display:"Sword"}
{display:"Sword"}
PlayerEvents.chat
: Can be cancelled, primarily used for event cancellation.PlayerEvents.decorateChat
: Cannot be cancelled, primarily used for message modification.