hasitem condition does not work with Crucible items on latest dev builds.
The hasitem conditon works with vanilla items but not custom items from Crucible. Version is 1.20.6 Paper build 147, Mythic build 5110, Crucible build 3880. Here's an example. Try picking it up with another copy of the custom item in your inventory, and then try with a stick.
red_ice:
Id: RED_DYE
Display: '&f&nRed Ice'
CustomModelData: 1
Group: Items
Lore:
- '&c+1% Damage &7per stack'
Attributes:
All:
Damage: -99
AttackSpeed: 20
Options:
Unbreakable: true
PreventDropping: false
PreventStacking: false
Hide:
- ATTRIBUTES
- ENCHANTS
- UNBREAKABLE
Skills:
- message{msg="<trigger.itemstack_amount>";delay=1} @Self ~onPickup ?hasitem{i=red_ice}
- message{msg="<trigger.itemstack_amount>";delay=1} @Self ~onPickup ?hasitem{i=stick}
- stataura{auraName=red_ice;d=30;stat=BONUS_DAMAGE;type=ADDITIVE;val=1;bt=true;bartimerdisplay="&4RED ICE";bartimercolor=RED;i=1;
onTick=[
- message{msg="<skill.var.aura-stacks> <caster.stat.BONUS_DAMAGE> <skill.var.aura-charges>"} @Self ?hasitem{i=red_ice}
];
onEnd=[
- message{msg="refresh"} @Self ?hasitem{i=red_ice}
]} @Self ~onPickup