#Requred mainhand item.

1 messages · Page 1 of 1 (latest)

proven ermine
#
const hand = killer?.getComponent("equippable").getEquipment("Mainhand")
if (hand?.typeId === "minecraft:iron_sword") {
    killer.sendMessage("10s activated!") 
    //other code
} ```