@name 
@inputs 
@outputs 
@persist E:entity
@trigger 
if(first()){
E = entity():isWeldedTo()
timer("color",500)
E:setMaterial("models/shiny")
}

if(clk("color")){
    E:setColor(vec(255,0,0))
    timer("color2",500)
}
if(clk("color2")){
    E:setColor(vec(0,255,0))
    timer("color",500)
}
