-
Notifications
You must be signed in to change notification settings - Fork 4
ItemModule
the item module adds a few functions related to items.
provides an extended ArmorItem and all features to add custom armor models, as shown in the tutorial.
provides the AbstractTotemItem class which contains the onUse method called
to check if this totem is able to save the player from the lethal damage just taken
provides the LibSwordItem class which allows to override the damage type (kill
message) used when attacking
adds the TabGroup and ArmorTabGroup classes used to group creative inventory
content together
abstracts the vanilla fishing hook to be able to fish in different fluids and modify
the used stats with the ModifyFishingHookStatsEvent
the Compacting class exposes the tryCompact method which attempts to compact a
given item into its compact form (gold -> gold block). the method returns a result
containing the 2x2 (small) and 3x3 (large) compacting result if applicable

provides a small tooltip next to attribute modifier lines that can show how much a
certain trait of that item contributed to the overall value. you can register custom
ones using the RegisterItemModifiersDisplayExtensionsEvent