I am trying to find an event that doesn't require ticking but can detect when a player begins using a certain item.
2nd option is trying to edit the .use method in an item registry event in StartupEvents but idk the correct syntax for it. As of right now i just added a boolean to each item .use method like in the tutorials , because when i tried doing something else it sends an error saying it expects a boolean and just crashes the game.
event
.create('betterasfour:amethyst_crab_scroll')
.texture('betterasfour:item/amethyst_crab_scroll')
.unstackable()
.tooltip('Use to increase the spell level for "Conjure Amethyst Crab" by 1 (Max level is 1, Must have summoner school!)')
.displayName("Scroll of Conjure Amethyst Crab")
.rarity("epic")
.useAnimation('bow')
.useDuration(itemstack => 60)
.use((level, entity, hand) => true) **How do I edit the use method**
.releaseUsing((itemstack, level, player) => {
player.playSound("entity.villager.no")
})
.finishUsing((itemstack, level, player) => {
player.runCommandSilent("puffish_skills skills unlock @s puffish_skills:schools1 isarg2egegtmq2sf")
player.playSound("entity.villager.trade")
}
)
}
)```



