Skip to main content

TConJSEvents.equipmentChange

MangoJellyPuddingOriginalSeptember 6, 2025About 2 min

Syntax:

TConJSEvents.equipmentChange((event: TinkerToolChangeEventJS) => {})

Field Overview

NameTypeDescription
contextEquipmentChangeContextThe context of the original Forge event
entityLivingEntityThe entity that triggered the event
originalItemStackThe item stack in the original slot
originalToolIToolStackViewThe Tinkers' NBT data of the original slot
player?PlayerThe player who triggered the event (returns Null if event.entity is not a player)
replacementItemStackThe item stack being replaced
replacementToolIToolStackViewThe Tinkers' NBT data of the replacement
tinkerDataLazyOptional<TinkerDataCapability$Holder>Tinkers' data
worldLevelThe dimension the player is in
hasModifiableArmorbooleanWhether the entity has Tinkers' modifiable armor value

Method Overview

NameReturn ValueDescription
getToolInSlot(slot: EquipmentSlot)IToolStackViewGet the Tinkers' tool stack in the specified slot. This method can be used to obtain tool information for a specific equipment slot.
hasModifiableArmor(slot: EquipmentSlot[])booleanCheck whether the entity has Tinkers' modifiable armor value. This method can be used to determine if the entity is equipped with Tinkers' related armor.
Last update: 9/6/2025, 12:16:31 PM
Contributors: EvanHsieh0415