Files
frajerskie_itemy.sk
Code
1 245
frajerskie_itemy.sk
options:
prefix: &8[&cFrajerskie itemy&8]&r
command /jebaćkurwy:
trigger:
set {_rod} to blaze rod named "&4pała kurwy"
enchant {_rod} with unbreaking 1
give player {_rod}
set {_slime} to slime ball named "&6pizda"
enchant {_slime} with unbreaking 1
give player {_slime}
set {_egg} to egg named "&5lewe jądro"
enchant {_egg} with unbreaking 1
give player {_egg}
set {_breath} to dragon breath named "&7eliksir frajera"
enchant {_breath} with unbreaking 1
give player {_breath}
set {_brownEgg} to egg named "B3D00&oG&oO&oW&oN&oO"
enchant {_brownEgg} with unbreaking 1
give player {_brownEgg}
set {_snowball} to snowball named "&esiki menela"
enchant {_snowball} with unbreaking 1
give player {_snowball}
send "{@prefix} &aOtrzymujesz wszystkie 6 przedmiotów." to player
command /frajerskasiekiera [<text>]:
trigger:
if arg-1 is "gotowe":
if {frajer::%uuid of player%::x1} is not set:
send "{@prefix} &cNajpierw zaznacz pierwszy punkt lewym kliknięciem siekiery." to player
stop
if {frajer::%uuid of player%::x2} is not set:
send "{@prefix} &cZaznacz drugi punkt prawym kliknięciem siekiery." to player
stop
if {frajer::%uuid of player%::world1} is not {frajer::%uuid of player%::world2}:
send "{@prefix} &cPunkty muszą być w tym samym świecie." to player
stop
if {frajer::%uuid of player%::x1} <= {frajer::%uuid of player%::x2}:
set {frajer::%uuid of player%::minx} to {frajer::%uuid of player%::x1}
set {frajer::%uuid of player%::maxx} to {frajer::%uuid of player%::x2}
else:
set {frajer::%uuid of player%::minx} to {frajer::%uuid of player%::x2}
set {frajer::%uuid of player%::maxx} to {frajer::%uuid of player%::x1}
if {frajer::%uuid of player%::y1} <= {frajer::%uuid of player%::y2}:
set {frajer::%uuid of player%::miny} to {frajer::%uuid of player%::y1}
set {frajer::%uuid of player%::maxy} to {frajer::%uuid of player%::y2}
else:
set {frajer::%uuid of player%::miny} to {frajer::%uuid of player%::y2}
set {frajer::%uuid of player%::maxy} to {frajer::%uuid of player%::y1}
if {frajer::%uuid of player%::z1} <= {frajer::%uuid of player%::z2}:
set {frajer::%uuid of player%::minz} to {frajer::%uuid of player%::z1}
set {frajer::%uuid of player%::maxz} to {frajer::%uuid of player%::z2}
else:
set {frajer::%uuid of player%::minz} to {frajer::%uuid of player%::z2}
set {frajer::%uuid of player%::maxz} to {frajer::%uuid of player%::z1}
set {frajer::%uuid of player%::world} to {frajer::%uuid of player%::world1}
set {frajer::%uuid of player%::ready} to true
send "{@prefix} &aObszar zapisany. Eliksir będzie teleportował w jego obrębie." to player
stop
if arg-1 is set:
send "{@prefix} &cUżycie: /frajerskasiekiera lub /frajerskasiekiera gotowe" to player
stop
give player iron axe named "&6Frajerska siekiera"
send "{@prefix} &aLewy klik: pierwszy punkt. Prawy klik: drugi punkt. Potem wpisz &e/frajerskasiekiera gotowe&a." to player
on left click on block:
if player's tool is iron axe:
if name of player's tool is "&6Frajerska siekiera":
cancel event
set {frajer::%uuid of player%::x1} to x-coordinate of event-block
set {frajer::%uuid of player%::y1} to y-coordinate of event-block
set {frajer::%uuid of player%::z1} to z-coordinate of event-block
set {frajer::%uuid of player%::world1} to world of event-block
delete {frajer::%uuid of player%::ready}
send action bar "&aZaznaczono pierwszy punkt" to player
on right click on block:
if player's tool is iron axe:
if name of player's tool is "&6Frajerska siekiera":
cancel event
set {frajer::%uuid of player%::x2} to x-coordinate of event-block
set {frajer::%uuid of player%::y2} to y-coordinate of event-block
set {frajer::%uuid of player%::z2} to z-coordinate of event-block
set {frajer::%uuid of player%::world2} to world of event-block
delete {frajer::%uuid of player%::ready}
send action bar "&aZaznaczono drugi punkt" to player
on right click:
set {_id} to ""
set {_seconds} to 0
if player's tool is blaze rod:
if name of player's tool is "&4pała kurwy":
set {_id} to "pala"
set {_seconds} to 180
if player's tool is slime ball:
if name of player's tool is "&6pizda":
set {_id} to "pizda"
set {_seconds} to 120
if player's tool is egg:
if name of player's tool is "&5lewe jądro":
set {_id} to "jadro"
set {_seconds} to 120
else if name of player's tool is "B3D00&oG&oO&oW&oN&oO":
set {_id} to "gowno"
set {_seconds} to 180
if player's tool is dragon breath:
if name of player's tool is "&7eliksir frajera":
set {_id} to "eliksir"
set {_seconds} to 240
if player's tool is snowball:
if name of player's tool is "&esiki menela":
set {_id} to "siki"
if {_id} is "":
stop
if {_id} is not "siki":
cancel event
if {_id} is "siki":
set {frajer::throwPending::%uuid of player%} to true
send action bar "&eSiki menela: &cprzedmiot jednorazowy" to player
stop
if {frajer::cooldown::%uuid of player%::%{_id}%} is after now:
set {_left} to difference between {frajer::cooldown::%uuid of player%::%{_id}%} and now
send action bar "&cCooldown: &f%{_left}%" to player
stop
else:
delete {frajer::cooldown::%uuid of player%::%{_id}%}
if {_id} is "pala":
delete {_targets::*}
loop all players:
if loop-player is not player:
add loop-player to {_targets::*}
if size of {_targets::*} is 0:
send action bar "&cBrak innych graczy online" to player
stop
set {_target} to random element out of {_targets::*}
if {_id} is "gowno":
set {_nearest} to 999999
loop all players:
if loop-player is not player:
if world of loop-player is world of player:
set {_distance} to distance between player and loop-player
if {_distance} < {_nearest}:
set {_nearest} to {_distance}
set {_target} to loop-player
if {_target} is not set:
send action bar "&cNie ma obok ciebie innego gracza" to player
stop
if {_id} is "eliksir":
if {frajer::%uuid of player%::ready} is not set:
send action bar "&cNajpierw zaznacz obszar siekierą i wpisz /frajerskasiekiera gotowe" to player
stop
set {_x} to random integer between {frajer::%uuid of player%::minx} and {frajer::%uuid of player%::maxx}
set {_y} to random integer between {frajer::%uuid of player%::miny} and {frajer::%uuid of player%::maxy}
set {_z} to random integer between {frajer::%uuid of player%::minz} and {frajer::%uuid of player%::maxz}
set {_tx} to {_x} + 0.5
set {_ty} to {_y} + 1
set {_tz} to {_z} + 0.5
set {_destination} to location at {_tx}, {_ty}, {_tz} in {frajer::%uuid of player%::world}
set {frajer::cooldown::%uuid of player%::%{_id}%} to now + {_seconds} seconds
if {_id} is "pala":
apply glowing to {_target} for 3 seconds
send action bar "&4Pała kurwy: &f%{_target}%" to player
if {_id} is "pizda":
apply speed 2 to player for 10 seconds
if {_id} is "jadro":
apply invisibility to player for 10 seconds
if {_id} is "eliksir":
teleport player to {_destination}
if {_id} is "gowno":
loop 25 times: