-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 10.8 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="=LPBc;uK:JgbaSnaH+c~">light2</variable><variable id="}|j{1-c#9@xxSOCSx-M0">old_light</variable><variable id="I]]+SIlhf:e2@Pu8oc(`">x</variable><variable id="}8[o8L,OcDri7M^uF3P,">y</variable><variable id="w.d;yCCs)ZkL0M3Yi@J-">z</variable><variable id="e)37.ecFg*m7`}0nODDH">base_x</variable><variable id="l5^9j]p`!Ml$x~%TQ9]R">base_y</variable><variable id="ClAYn7$=h,D0(bk,avYN">base_z</variable></variables><block type="pxt-on-start" id="GD@{AjPoa6*N):HJQTsW" x="20" y="20"><statement name="HANDLER"><block type="variables_set" id="P/CnAMOq~TL=oiaEkBd+"><field name="VAR" id="e)37.ecFg*m7`}0nODDH">base_x</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_acceleration" id="z1kZsXQ^Tod{tGK0@4D4"><field name="NAME">Dimension.X</field></block></value><next><block type="variables_set" id="X:/3wkR;vV5Q*~%b/Ty4"><field name="VAR" id="l5^9j]p`!Ml$x~%TQ9]R">base_y</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_acceleration" id="e=QHqO(1!8QiOH%KsL|S"><field name="NAME">Dimension.Y</field></block></value><next><block type="variables_set" id="OT89YY@n$|LEWIJ3B3-a"><field name="VAR" id="ClAYn7$=h,D0(bk,avYN">base_z</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_acceleration" id="eyo3;Ty:vI`+a77dPGLq"><field name="NAME">Dimension.Z</field></block></value><next><block type="device_clear_display" id="~Zk09Uth2rS_h!E-e5/+"><next><block type="variables_set" id="d(BIgS%@v!?sV)sD,%CF"><field name="VAR" id="}|j{1-c#9@xxSOCSx-M0">old_light</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_point_brightness" id="EV5)2E0y|:o$ekUx~(x9"><value name="x"><shadow type="math_number_minmax" id="F2tppW$]$1sfX0hJ0(w^"><mutation min="0" max="4" label="Number" precision="0"/><field name="SLIDER">0</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="],Wx$OLKPJs`B~uhj=sb"><mutation min="0" max="4" label="Number" precision="0"/><field name="SLIDER">0</field></shadow></value></block></value><next><block type="input_set_sound_threshold" id="FH0hC(:d#P6g-Q$MSG!J"><field name="sound">SoundThreshold.Loud</field><value name="value"><shadow type="math_number_minmax" id="qCdlkNk]p?7{3$Y+M4w$"><mutation min="0" max="255" label="Number" precision="0"/><field name="SLIDER">128</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="-[P)w*i@IoWeAfRr83]{" x="645" y="20"><mutation name="SendAlert" functionid="46EN38^`~^vp1Icljf_x"><arg name="msg" id="kzxeyut919ua0va2533p" type="string"/></mutation><field name="function_name">SendAlert</field><statement name="STACK"><block type="radio_datagram_send_string" id="b4zk.|%oQ+!XI%mbFIx4"><value name="msg"><block type="argument_reporter_string" id="ChpW*~R?{D%_?v/QRh@2"><field name="VALUE">msg</field></block></value></block></statement></block><block type="device_forever" id="M|9Tp[c6%-iyIM!Kh(}g" x="942" y="159"><statement name="HANDLER"><block type="device_while" id="#JUB:K-]Yp.ad}A@/9z-"><value name="COND"><shadow type="logic_boolean" id="_CSj-v]-ks?@sD8ma1eI"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="variables_set" id="N@?efcwhdv,124Sw7izZ"><field name="VAR" id="=LPBc;uK:JgbaSnaH+c~">light2</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_point_brightness" id="iZA+X29O@Gc?=EY?1*YU"><value name="x"><shadow type="math_number_minmax" id="bT$H5t02@/o,wrh6=aek"><mutation min="0" max="4" label="Number" precision="0"/><field name="SLIDER">0</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="|o*/##zBi[6esg~@d]Z5"><mutation min="0" max="4" label="Number" precision="0"/><field name="SLIDER">0</field></shadow></value></block></value><next><block type="controls_if" id="sYU8~-L4v=TDHluR`B#w"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="$:)Eqk;n@cvbyXc8Qbzt"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="bWP+U~umSrFdVguB`lrj"><field name="VAR" id="=LPBc;uK:JgbaSnaH+c~">light2</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="z9Gg)dGktC_Yh9g=~mx="><field name="VAR" id="}|j{1-c#9@xxSOCSx-M0">old_light</field></block></value></block></value><statement name="DO0"><block type="function_call" id="Ikq5;I%$p$54319/yVhw"><mutation name="SendAlert" functionid="46EN38^`~^vp1Icljf_x"><arg name="msg" id="kzxeyut919ua0va2533p" type="string"/></mutation><value name="kzxeyut919ua0va2533p"><shadow type="text" id="C9jt3ohp1pjrjXV,.3e="><field name="TEXT">Light</field></shadow></value></block></statement><next><block type="variables_set" id="e?Y$Z5#Ze~3Omnx;*.DS"><field name="VAR" id="}|j{1-c#9@xxSOCSx-M0">old_light</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="u4+:4|*ImU+_8CH$N(nN"><field name="VAR" id="=LPBc;uK:JgbaSnaH+c~">light2</field></block></value><next><block type="variables_set" id="~?0B:wM/?D/`W$9-;Ruv"><field name="VAR" id="I]]+SIlhf:e2@Pu8oc(`">x</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_acceleration" id="56cYe3*(%m!GDLfqUMC6"><field name="NAME">Dimension.X</field></block></value><next><block type="variables_set" id="qKV/uvrQur33I:NyL?gd"><field name="VAR" id="}8[o8L,OcDri7M^uF3P,">y</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_acceleration" id="5X-Wio7Ci_jJ=u++({iU"><field name="NAME">Dimension.Y</field></block></value><next><block type="variables_set" id="YlGKz#ozWxV+YYw,Pu;w"><field name="VAR" id="w.d;yCCs)ZkL0M3Yi@J-">z</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_acceleration" id="Td)8]_QNgw}^+hVy8pi6"><field name="NAME">Dimension.Z</field></block></value><next><block type="controls_if" id="$@0BiGOI$w@TfE:O]B97"><mutation elseif="2"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="ZWMB3%y@Z0|oaV3(AFD("><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_op3" id=",$t{1D_1X#DL9ogXf=es"><value name="x"><block type="math_arithmetic" id="?i.d@70/.V`7Vblbj+e_"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="NtXjmBjAGVF`{K{;M]sr"><field name="VAR" id="I]]+SIlhf:e2@Pu8oc(`">x</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="@H;Pi-0QH1!UPn#]=E)R"><field name="VAR" id="e)37.ecFg*m7`}0nODDH">base_x</field></block></value></block></value></block></value><value name="B"><shadow type="math_number" id="Kwp{FU*0aGn=oHE4Dm}G"><field name="NUM">10</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="U;-=bvQS0Q4)Z)v8Xm+F"><mutation name="SendAlert" functionid="46EN38^`~^vp1Icljf_x"><arg name="msg" id="kzxeyut919ua0va2533p" type="string"/></mutation><value name="kzxeyut919ua0va2533p"><shadow type="text" id="@f@]y2$U}nCrwg]su(gd"><field name="TEXT">move</field></shadow></value></block></statement><value name="IF1"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="OLI{PDqb:N392``M=dA]"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_op3" id="}}bxI$9;8+bV]~u}TfKm"><value name="x"><block type="math_arithmetic" id="Jldja(E_xK~!Sd.tPq]R"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="QqXk;(;/%OGeq0+Em[3-"><field name="VAR" id="}8[o8L,OcDri7M^uF3P,">y</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="o^3(O]eyrn2nbBMT-l6w"><field name="VAR" id="l5^9j]p`!Ml$x~%TQ9]R">base_y</field></block></value></block></value></block></value><value name="B"><shadow type="math_number" id="RT[$l@Hr!x}MFLLRdRnv"><field name="NUM">10</field></shadow></value></block></value><statement name="DO1"><block type="function_call" id="Ax1}K^8o.yjcb9_F)dZF"><mutation name="SendAlert" functionid="46EN38^`~^vp1Icljf_x"><arg name="msg" id="kzxeyut919ua0va2533p" type="string"/></mutation><value name="kzxeyut919ua0va2533p"><shadow type="text" id=".9{sr3UHyIqnHMm`!2L}"><field name="TEXT">move</field></shadow></value></block></statement><value name="IF2"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="j{Y$;?|Dt}FNBa-FeN/O"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_op3" id="d(nzTe(1d#_s|J`gWn9I"><value name="x"><block type="math_arithmetic" id="rij;a{MHu-W+fZ7]8^3x"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="uoKU@}pU:V*QRA72ib$A"><field name="VAR" id="w.d;yCCs)ZkL0M3Yi@J-">z</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="T#AfRB{FRH3#f$Kf|sz;"><field name="VAR" id="ClAYn7$=h,D0(bk,avYN">base_z</field></block></value></block></value></block></value><value name="B"><shadow type="math_number" id="2QWW3Vs#D@DKS[Bh=Ns7"><field name="NUM">10</field></shadow></value></block></value><statement name="DO2"><block type="function_call" id="kZ$k%Ud=v#A[PwBz17~S"><mutation name="SendAlert" functionid="46EN38^`~^vp1Icljf_x"><arg name="msg" id="kzxeyut919ua0va2533p" type="string"/></mutation><value name="kzxeyut919ua0va2533p"><shadow type="text" id="7nGBOMQ_qtXWtW!d|^w~"><field name="TEXT">move</field></shadow></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block><block type="input_on_sound" id="]W7F!n]x1=7m-Yk#]q/H" x="631" y="215"><field name="sound">DetectedSound.Loud</field><statement name="HANDLER"><block type="function_call" id="e5d8}JA!_e,Te`w$0O-|"><mutation name="SendAlert" functionid="46EN38^`~^vp1Icljf_x"><arg name="msg" id="kzxeyut919ua0va2533p" type="string"/></mutation><value name="kzxeyut919ua0va2533p"><shadow type="text" id="tLEkw%8@9rP=p0)g{G{/"><field name="TEXT">sound</field></shadow></value></block></statement></block></xml>