@name Simple Mass Setter Chip
@inputs ID 
@outputs GetMass
@persist Mass
@trigger all
Time=20
interval(Time)
Self=entity():owner()
Chat=Self:lastSaid()
K=(curtime()-Self:lastSaidWhen())<(Time*2)/1000
Brk="<"
MASS="Mass"
HoldOn="hold"
Read="read"
Set="Entity Mass is: "
M=Chat:find(MASS)
B=Chat:find(Brk)
R=Chat:find(Read)
H=Chat:find(HoldOn)
if(M&B&K){
    Mass=Chat:explode(Brk):string(2):toNumber()
    print(Set+Mass)
    entity(ID):setMass(Mass)}
if(M&H&B){Mass=Chat:explode(Brk):string(2):toNumber()
if(K){print(Set+Mass)}
    entity(ID):setMass(Mass)}
    

GetMass=entity(ID):mass()
if(R&M&K){print(Set+GetMass)}
DID=$ID
if(R&M&H&K&DID){print(Set+GetMass)}

