@name Mass Hopper
@inputs 
@outputs N Num Count
@persist Num N T:array X Y
@trigger all
if(ops()>2800){exit()}
#User Interface
Time=10
interval(Time)
if (first()) {Num = 0 N=1}
Chat = entity():owner():lastSaid()
When = entity():owner():lastSaidWhen()
C = Chat:find("Hop") 
K = (curtime() - entity():owner():lastSaidWhen()) < Time*2/1000
if (C&K&Chat:find("<")) { Find=Chat:explode("<") 
Num = Find:string(2):toNumber() print("Force: "+toString(Num))
    X=Find:string(3):toNumber() print("Boxsize: "+toString(X))}
if (C&K&Chat:find("count")) {print(toString(Count))}
#End of Interface


#Entity Finder
Y=X
timer("delay",2000)
Origin = entity():pos()
if(clk("delay")) {findInBox(Origin+vec(-X,-Y,-10),Origin+vec(X,Y,40))}
findSortByDistance(Origin)
findExcludeClass("npc")
findExcludeClass("monster")
#findExcludeClass("player")
T=findToArray()
Count=T:count()

#Mass Hopper
Jump =vec(0,0,Num)

if (Count>0) {
T:entity(N):applyForce(Jump)
if (N>Count) {N=1} else {N+=1}
}
