@name Disposable Mass Counter Chip
@inputs 
@outputs Mass
@persist C T
@trigger all
interval(500)
if (first()) {C=1 T=curtime()}

Contraption=entity():getConstraints()
timer("MassCount",1)
if (clk("MassCount")) {
Mass+=Contraption:entity(C):mass()
if(C<Contraption:count()){C+=1}else{print("Total Contraption Mass: "+toString(Mass)) 
    Gravity=600
#Thrust=(Mass*Gravity/183.6375) #pop can
#Thrust=(Mass*Gravity/1270) #Trainstation Ordiment
Thrust=(Mass*Gravity/50)/1 #vector thruster
print("For lift use a force of: "+toString(Thrust))
print("divided by # of thruster")
print("Entities counted: "+toString(Contraption:count()))
Time=curtime()-T
print("Total count time: "+toString(Time)+" seconds")
selfDestruct()}
}
