command /knock [<player>]:
permission: cmd.ac
permission message: &cNie masz uprawnien.
trigger:
if arg 1 is online:
if block behind arg 1 is air or grass or long grass or any flowers or double-long grass:
set {_z} to "%x-coordinates of arg 1% %y-coordinates of arg 1%"
push the arg 1 backwards with speed 0.3
wait 5 tick
if "%x-coordinates of arg 1% %y-coordinates of arg 1%" is {_z}:
send "&5[AC] &3Gracz %arg 1%, &cPosidada AntyKnocka."
else:
send "&5[AC] &3Gracz %arg 1%, &aNie Posiada AntyKnocka."
else:
send "&5[AC] &cPrzeprowadzenie testu nie jest mozliwe."
else:
send "&5[AC] &cTen gracz nie jest online."