The syntax error with the code you posted is simply a missing curly brace at the end (at least that's all I saw wrong with it).
With that fix, it should work (unless I'm missing something else) as long as the invis mob gets the timer going somehow (agro or signal as suggested earlier in this thread).
|