variables: {cpscurrently::%player%} = 0 {clicks::%player%} = 0 {cpstool::%player%} = 0 {cpsx::%player%} = 1 command /cps: trigger: if {cpstool::%player%} is 0: give 1 of 397:1 named "&cCPS&7TOOL" to player set {cpstool::%player%} to 1 apply Invisibility potion of tier 1 to the player for 600 second apply resistance potion of tier 127 to the player for 600 second stop if {cpstool::%player%} is 1: send "&7Zabrano &cCPS&7TOOl&7!" remove 1 of 397:1 from player remove resistance from player remove Invisibility from player set {cpstool::%player%} to 0 stop on rightclick on chest: if {cpstool::%player%} is 1: cancel event send "&cNie mozesz wchodzic w interakcje z obiektami podczas testu CPS!" on rightclick on doors: if {cpstool::%player%} is 1: cancel event send "&cNie mozesz wchodzic w interakcje z obiektami podczas testu CPS!" on rightclick on ender chest: if {cpstool::%player%} is 1: cancel event send "&cNie mozesz wchodzic w interakcje z obiektami podczas testu CPS!" on rightclick on furnace: if {cpstool::%player%} is 1: cancel event send "&cNie mozesz wchodzic w interakcje z obiektami podczas testu CPS!" on rightclick on crafting table: if {cpstool::%player%} is 1: cancel event send "&cNie mozesz wchodzic w interakcje z obiektami podczas testu CPS!" on rightclick on enchantment table: if {cpstool::%player%} is 1: cancel event send "&cNie mozesz wchodzic w interakcje z obiektami podczas testu CPS!" on rightclick on trapped chest: if {cpstool::%player%} is 1: cancel event send "&cNie mozesz wchodzic w interakcje z obiektami podczas testu CPS!" on command: if {cpstool::%player%} is 1: if command is not "cps": send "&cNie mozesz wykonywac komend podczas testu CPS!" on drop 397:1: cancel event send "&cNie mozesz wyrzucic CPSTOOL!" on leftclick holding 397:1: if {cpsx::%player%} is 1: set {cpsx::%player%} to 0 set action bar of player to "10" wait 1 second set action bar of player to "9" wait 1 second set action bar of player to "8" wait 1 second set action bar of player to "7" wait 1 second set action bar of player to "6" wait 1 second set action bar of player to "5" wait 1 second set action bar of player to "4" wait 1 second set action bar of player to "&43" wait 1 second set action bar of player to "&42" wait 1 second set action bar of player to "&41" wait 1 second set action bar of player to "&4STOP!" set action bar of player to "&7Obliczanie CPS!..." wait 1 second set {cpsx::%player%} to 1 set {cpscurrently::%player%} to {clicks::%player%}/10 send "&7Rezultaty: &c%{cpscurrently::%player%}% CPS" set {cpscurrently::%player%} to 0 set {clicks::%player%} to 0 on leftclick holding 397:1: if {cpsx::%player%} is 0: add 1 to {clicks::%player%}