I tried to add a click check on the armor stand, but I only came up with this
ItemEvents.entityInteracted('minecraft:stick', event => {
if (event.target.type !: "minecraft:armor_stand') return;
if (event.entityType.tags.anyMatch(tag => tag.location == "minecraft:test"))
Utils.server.runCommandSilent('say hello');
});
And it doesn't work, who knows how to do it?