{ "_fv": 57, "_type": "procedure", "definition": { "procedurexml": "usehandpowerno_ext_triggerlocal:powerpowerstopsound @s player target:bowpullstopsound @s player target:bowpull1pANDCUSTOM:BocekGTEpower6EQglobal:zoomingTRUECUSTOM:BocekarrowFALSEFALSEALLOWEDMULTIPLY0.5ADD1MULTIPLY0.05local:usehandlevel02MULTIPLY4local:power0.05playsound target:bowfire1p player @s ~ ~ ~ 10 1playsound target:bowfire3p player @a ~ ~ ~ 2 1stopsound @s player target:bowfire3p10CUSTOM:BulletFALSEFALSEDISALLOWEDMULTIPLY0.05ADD1MULTIPLY0.05local:usehandlevel00MULTIPLY4local:power2playsound target:shotfire player @s ~ ~ ~ 10 1playsound target:shotfire3p player @a ~ ~ ~ 2 1stopsound @s player target:shotfire3pThis 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.5global:recoilhorizon-1global:recoilhorizon1global:recoil0.17arrowempty7power0local:usehandfireanim2global:firing1CREATIVE1Items.ARROW" } }