$${if(crafting); log(Craft Disabled.); unset(crafting); else; set(crafting); log(Craft Enabled.); do; craft(gold_ingot); wait(1ms); while(crafting); endif}$$ Yup like this. If you leave the $$? it works, but it will prompt you for what item you want every time you activate and deactivate the macro. If that still causes problems, try changing "wait(1ms)" to "wait(3ms)" or so.
Would it not just be quicker to put 64 nuggets in each crafting slot to instantly craft 64 ingots, then repeat twice more?
Faster, yes, but it is 1 button vs 60, I think. Greatly extends the lifespan of your mouse, also useful for eating sandwiches while playing video games.
One problem with EMC minecraft, it thinks many times enough im AFK but im still behind the keyboard, only in other program while im waiting for day or to kill something in minecraft. Lucky i dont use mods. Btw, i wish autclicking (by holding mouse) worked always. because all the manual clicking is a bit bad for the mouse. but more but for my fingers etc. especialy if we talk about killing enraged mobs.