@name FailCake SmallMc
@outputs Spawn I2 P
@persist I Pos:array
@trigger all
runOnTick(1)

E = entity()

if(first()){
propSpawnEffect(0)

for(X=1,10){
for(Y=1,10){
I++
Pos[I,vector2] = vec2(X,Y)    
}    
}

Spawn = 1    
}

if(Spawn){
timer("spwn",200)
if(clk("spwn")){
    
if(I2 <= Pos:count()){
I2+=1    
}else{
P+=1
I2=0
}

Block = propSpawn("models/hunter/blocks/cube025x025x025.mdl",E:toWorld(vec(Pos[I2,vector2]*12,P*12)),ang(0,0,0),1)
    
}
}
