# SKRIPT SPLEGG BY RICKPLAYINGPL # WERSJA:BETAv v1.0 # WERSJA:BETAv v1.0 variables: {splegg.arena.playernum} = 0 {splegg.player.ingame.%player%} = false {splegg.arena.winmessage} = false {splegg.arena.mode} = 0 {splegg.player.wyrzutnia.%player%} = 0 {splegg.arena.startmessage} = false {splegg.player.splegggun.delay.%player%} = false {splegg.arena.god} = false command /splegg : trigger: arg 1 is "help": send "&aLista komend Splegg:" send "&e/splegg join" send "&e/splegg leave" send "&e/splegg setarenalobbyspawn" send "&e/splegg setlobbyspawn" send "&e/splegg setarenaspawn" stop arg 1 is "join": {splegg.player.ingame.%player%} is false: {splegg.arena.mode} is 0: {splegg.arena.spawn} is set: {splegg.lobby.spawn} is set: {splegg.arena.lobbyspawn} is set: {splegg.arena.playernum} is less than 6: send "&7[&cSplegg&7]: &eDolaczono do areny Splegg!" teleport player to {splegg.arena.lobbyspawn} add 1 to {splegg.arena.playernum} set {splegg.player.ingame.%player%} to true clear inventory of player heal the player set gamemode of player to adventure broadcast "&7[&cSplegg&7]: &7%player% &edolaczyl! (&c%{splegg.arena.playernum}%&e/&c5&e)" to "arena" send "&aGra Splegg jest w trybie &6BETA&a, wiec moga wystapic na niej rozorakie bledy!" stop else: send "&7[&cSplegg&7]: &cArena jest pelna!" stop else: send "&7[&cSplegg&7]: &cNie ustawiono spawnu w lobby na arenie!" stop else: send "&7[&cSplegg&7]: &cNie ustawiono spawnu w glownym lobby!" stop else: send "&7[&cSplegg&7]: &cNie ustawiono spawnu na arenie!" stop else: send "&7[&cSplegg&7]: &cArena jest w trakcie gry!" stop else: send "&7[&cSplegg&7]: &cNie mozesz uzywac tej komendy gdy jestes w grze!" stop arg 1 is "leave": {splegg.player.ingame.%player%} is true: send "&7[&cSplegg&7]: &ePowrocono do glownego lobby!" remove 1 from {splegg.arena.playernum} set {splegg.player.ingame.%player%} to false broadcast "&7[&cSplegg&7]: &7%player% &eopuscil!" to "arena" clear inventory of player heal player wait 1 ticks teleport player to {splegg.lobby.spawn} stop else: send "&7[&cSplegg&7]: &cMusisz byc na arenie aby moc uzywac tej komendy!" stop arg 1 is "setarenalobbyspawn": player has permission "splegg.admin": set {splegg.arena.lobbyspawn} to location of player send "&7[&cSplegg&7]: &aSpawn w lobby na arenie zostal pomyslnie utworzony!" stop else: send "&cMie posiadasz uprawnien do wykonywania tej komendy!" stop arg 1 is "setlobbyspawn": player has permission "splegg.admin": set {splegg.lobby.spawn} to location of player send "&7[&cSplegg&7]: &aSpawn w glownym lobby zostal pomyslnie utworzony!" stop else: send "&cNie posiadasz uprawnien do wykonywania tej komendy!" stop arg 1 is "setarenaspawn": player has permission "splegg.admin": set {splegg.arena.spawn} to location of player send "&7[&cSplegg&7]: &aSpawn na arenie zostal pomyslnie utworzony!" stop else: send "&cNie posiadasz uprawnien do wykonywania tej komendy!" stop arg 1 is "debug": player has permission "splegg.admin": send "&7[&cSplegg&7]: &aDebugowanie..." wait 1 seconds loop players: wait 5 ticks set {splegg.player.ingame.%loop-player%} to false set {splegg.arena.playernum} to 0 set {splegg.arena.splegggun} to false set {splegg.arena.mode} to 0 set {splegg.arena.god} to false set {splegg.arena.startmessage} to false set {splegg.arena.winmessage} to false set {splegg.player.splegggun.delay.%loop-player%} to false execute console command "wr rebuild arena" send "&7[&cSplegg&7]: &aDebugowanie zakonczone pomyslnie!" stop stop arg 1 is "wyrzutnia-swin": {splegg.player.wyrzutnia.%player%} is 0: {monety.%player%} is more than 49: add 1 to {splegg.player.wyrzutnia.%player%} send "&aWlasnie zakupiono: &6Wyrzutnia Swin" execute console command "playsound note.pling %player%" stop else: send "&cNie posiadasz wystarczajacej ilosci Monet, aby moc zakupic to ulepszenie!" execute console command "playsound mob.endermen.portal %player%" stop else: send "&cPosiadasz juz zakupiona ta umiejetnosc!" execute console command "playsound note.bass %player%" stop else: execute player command "splegg help" stop on shoot: projectile is egg {splegg.player.ingame.%shooter%} is true: trail projectile with spell every 5 seconds: {splegg.arena.playernum} is more than 1: {splegg.arena.mode} is 0: {splegg.arena.startmessage} is false: loop players in world "arena": set {splegg.arena.startmessage} to true broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c10 &esekund!" to "arena" wait 5 seconds broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c5 &esekund!" to "arena" wait 1 seconds broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c4 &esekund!" to "arena" wait 1 seconds broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c3 &esekund!" to "arena" wait 1 seconds broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c2 &esekund!" to "arena" wait 1 seconds broadcast "&7[&cSplegg&7]: &eArena wystartuje za &c1 &esekund!" to "arena" wait 1 seconds {splegg.arena.playernum} is more than 1: broadcast "&7[&cSplegg&7]: &bPowodzenia!" to "arena" execute console command "arenateleport" set level of loop-player to 0 set {splegg.arena.splegggun} to true set {splegg.arena.mode} to 2 stop else: broadcast "&7[&cSplegg&7]: &cNie odpowiednia ilosc graczy do startu gry!" to "arena" set {splegg.arena.startmessage} to false stop command /arenateleport: permission: prison.admin permission message: Nie posiadasz uprawnien do wykonywania tej komendy! trigger: loop all players in world "arena": teleport loop-player to {splegg.arena.spawn} give 1 iron spade named "&aSplegg Gun" to loop-player {splegg.player.wyrzutnia.%loop-player%} is more than 0: give 1 nether star named "&aUmiejetnosc: &6Wyrzutnia Swin" to loop-player send "&7[&cSplegg&7]: &a&lOtrzymales(as) wyrzutnie swin! Kliknij-prawym na zlota lopate aby ja aktywowac!" remove 1 from {splegg.player.wyrzutnia.%loop-player%} every 5 seconds: {splegg.arena.playernum} is 1: {splegg.arena.winmessage} is false: {splegg.arena.mode} is 2: loop players in world "arena": set {splegg.arena.winmessage} to true set {splegg.arena.god} to true clear inventory of loop-player broadcast "&6+&7-----------------------------------&6+" to "arena" broadcast " &aWygrales(as) arene Splegg!" to "arena" broadcast "&6+&7-----------------------------------&6+" to "arena" broadcast " &6Zdobyto lacznie 15 Monet!" to "arena" broadcast "&6+&7-----------------------------------&6+" to "arena" play level_up at loop-player with pitch 1 wait 5 seconds teleport loop-player to {splegg.lobby.spawn} wait 5 ticks loop players: set {splegg.player.ingame.%loop-player-2%} to false set {splegg.arena.playernum} to 0 set {splegg.arena.splegggun} to false set {splegg.arena.mode} to 0 set {splegg.arena.god} to false set {splegg.arena.startmessage} to false set {splegg.arena.winmessage} to false set {splegg.player.splegggun.delay.%loop-player-2%} to false execute console command "wr rebuild arena" every 5 seconds: {splegg.arena.playernum} is 0: {splegg.arena.mode} is 2: loop players: wait 5 ticks set {splegg.player.ingame.%loop-player%} to false set {splegg.arena.playernum} to 0 set {splegg.arena.splegggun} to false set {splegg.arena.mode} to 0 set {splegg.arena.startmessage} to false set {splegg.arena.god} to false set {splegg.arena.winmessage} to false set {splegg.player.splegggun.delay.%loop-player%} to false execute console command "rb rebuild arena" on rightclick holding a iron spade: name of player's tool is "&aSplegg Gun": {splegg.player.splegggun.delay.%player%} is false: set {splegg.player.splegggun.delay} to true shoot a egg from player at speed 1 play irongolem_throw at player with pitch 2 wait 3 tick set {splegg.player.splegggun.delay.%player%} to false on spawn: entity is chicken world is "arena": cancel event on projectile hit: projectile is egg world is "arena": loop blocks in radius 1 around the projectile: loop-block is not air set loop-block to air spawn 10 of spell data 1 offset with 0, 0, 0 at loop-block on rightclick holding a nether star: name of player's tool is "&aUmiejetnosc: &6Wyrzutnia Swin": shoot a pig from player at speed 0.2 play explode at player with pitch 2 spawn 30 of cloud data 10 offset with 0, 0, 0 at player remove 1 nether star from player on spawn: entity is pig world is "arena": push the entity upwards at speed -2 loop 20 times: push the entity horizontally forward at speed 0.2 spawn 15 of red_dust data 10 offset with 0, 0, 0 at entity spawn 2 of mob_spell data 10 offset with 1, 1, 1 at entity wait 2 ticks create a safe explosion with force 2 at entity loop blocks in radius 3 around the entity: loop-block is not air set loop-block to air kill entity wait 1 seconds play pig_death at entity with pitch 0 on damage: world is "arena": {splegg.arena.god} is true: cancel event on damage of pig: world is "arena": cancel event on drop: world is "arena": cancel event on pickup: world is "arena": cancel event on damage of player: world is "arena": attacker is player cancel event on death of player: world is "arena": send "&7[&cSplegg&7]: &cPrzegrales(as)!" to victim teleport player to {splegg.lobby.spawn} set {splegg.player.ingame.%victim%} to false remove 1 from {splegg.arena.playernum} on rightclick on sign: line 1 is "&a[Dolacz]": line 2 is "Splegg": {splegg.arena.mode} is 0: set line 1 to "" set line 2 to "Dolaczanie..." wait 5 ticks execute player command "splegg join" wait 10 ticks set line 1 to "&a[Dolacz]" set line 2 to "Splegg" else if {splegg.arena.mode} is 1 or 2: set line 1 to "&4✖" set line 2 to "&4Arena jest" set line 3 to "&4w trakcie" set line 4 to "&4gry!" wait 2 seconds set line 1 to "&a[Dolacz]" set line 2 to "Splegg" set line 3 to "" set line 4 to "" send "&7[&cSplegg]: &cArena jest w trakcie gry!" else if {splegg.arena.playernum} is more than 5: set line 1 to "&4✖" set line 2 to "&4Arena jest" set line 3 to "&4pelna!" wait 2 seconds set line 1 to "&a[Dolacz]" set line 2 to "Splegg" set line 3 to "" set line 4 to "" send "&7[&cSplegg]: &cArena jest pelna!" on quit: {splegg.player.ingame.%player%} is true: execute player command "splegg leave"