{ "_fv": 77, "_type": "procedure", "definition": { "procedurexml": "targetdistsqrtickCounterno_ext_triggerEQ0tick/summon block_display ~ ~ ~ {transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.5f,1.5f,1.5f],translation:[-0.5f,-0.5f,-0.5f]},Rotation:[-9090f,-9090f],block_state:{Name:black_concrete}}tickADD1tickEQ100ticktick1local:targetEntityPlayer500local:targetlocal:distsqrADDPOWERMINUSlocal:target2ADDPOWERMINUSlocal:target2POWERMINUSlocal:target2GT4local:distsqrlocal:distsqr10000000LT2500local:distsqrlocal:distsqr1This example will test if the random number is less than 0.7 (70%). Random numbers range between (0.0 and 1.0). If it is true, then it will run what is in the \"do\" section of the if statement.LTRANDOM0.001local:distsqr0.1vxADDvxMULTIPLY0.5DIVIDEMINUSlocal:targetPOWERlocal:distsqr1vyADDvyMULTIPLY0.5DIVIDEMINUSlocal:targetPOWERlocal:distsqr1vzADDvzMULTIPLY0.5DIVIDEMINUSlocal:targetPOWERlocal:distsqr1ADDMULTIPLY0.5vxADDMULTIPLY0.5vyADDMULTIPLY0.5vzMULTIPLY0.5vxMULTIPLY0.5vyMULTIPLY0.5vzvxMIN0.7MAX-0.7vxvyMIN0.7MAX-0.7vyvzMIN0.7MAX-0.7vzBlocks.STAINED_GLASS#15" } }