Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-----------------------|
- # Zmienne |
- #-----------------------|
- Variables:
- {perla.%player%} = 0
- {a.%player%} = 0
- {z.%player%} = 0
- {w.%player%} = 0
- {s.%player%} = 0
- {o.%player%} = 0
- #-----------------------|
- # Komenda |
- #-----------------------|
- command /zbroja [<text>] [<text>]:
- permission: zbroja.sk
- aliases: pd, d, dodatki, p
- trigger:
- if arg 1 is not set:
- execute player command "miecz"
- execute player command "luk 3"
- execute player command "czapka"
- execute player command "czolg"
- execute player command "spodnie"
- execute player command "buty"
- if arg 1 is "miecz":
- execute player command "excalibur"
- if arg 1 is "luk":
- execute player command "luk"
- if arg 1 is "czapka":
- execute player command "czapka"
- if arg 1 is "czolg" or "zbroja":
- execute player command "czolg"
- if arg 1 is "spodnie":
- execute player command "spodnie"
- if arg 1 is "buty" or "cloudboots":
- execute player command "sk reload cloudboots"
- if arg 1 is "reload":
- if arg 2 is "all":
- execute player command "sk reload excalibur"
- execute player command "sk reload luk"
- execute player command "sk reload czapka"
- execute player command "sk reload czolg"
- execute player command "sk reload spodnie"
- execute player command "sk reload cloudboots"
- execute player command "sk reload skok"
- send "&8[&aPeterson&cDodatki&8] &aPoprawnie Przeladowano"
- if arg 2 is "miecz":
- execute player command "sk reload excalibur"
- if arg 2 is "luk":
- execute player command "sk reload luk"
- if arg 2 is "czapka":
- execute player command "sk reload czapka"
- if arg 2 is "czolg" or "zbroja":
- execute player command "sk reload czolg"
- if arg 2 is "spodnie":
- execute player command "sk reload spodnie"
- if arg 2 is "buty" or "cloudboots":
- execute player command "sk reload cloudboots"
- #---------------|
- #Czapka Niewidka|
- #---------------|
- every 1 second:
- loop all players:
- if helmet of loop-player is diamond helmet named "&a&lCzapka Niewidka":
- apply invisibility 10 to the loop-player for 1 seconds
- set {w.%loop-player%} to "1"
- on script load:
- register new shaped recipe for 310 named "&a&lCzapka Niewidka" using diamond block, diamond block, diamond block, diamond block, 0, diamond block, 0, 0, 0
- command /czapka:
- permission: set.sk
- trigger:
- execute console command "give %player% 310 1 name:&a&lCzapka_Niewidka"
- send "&8[&aPeterson&cDodatki&8] &aDostales &a&lCzapke Niewidke"
- #---------------|
- # Cloud Boots |
- #---------------|
- every 1 second:
- loop all players:
- if boots of loop-player is diamond boots named "&9Cloud boots!":
- apply jump boost 5 to the loop-player for 1 seconds
- command /buty:
- permission: op
- trigger:
- give diamond boots of protection 8 named "&9Cloud boots!" to player
- on damage:
- if boots of victim is diamond boots of protection 8 named "&9Cloud boots!":
- damage cause is fall
- set {_a} to location of victim
- spawn 20 of particle fireworks Spark offset by 1, 1, 1 at {_a}
- spawn 15 of particle smoke offset by 1, 1, 1 at {_a}
- spawn 15 of particle magic crit offset by 1, 1, 1 at {_a}
- cancel event
- on jump:
- if boots of player is diamond boots of protection 8 named "&9Cloud boots!":
- set {_a} to location of player
- spawn 20 of particle fireworks Spark offset by 1, 1, 1 at {_a}
- spawn 15 of particle smoke offset by 1, 1, 1 at {_a}
- spawn 15 of particle magic crit offset by 1, 1, 1 at {_a}
- on script load:
- register new shaped recipe for diamond boots of protection 8 named "&9Cloud boots!" using feather, air, feather, diamond block, air, diamond block, diamond block, air, diamond block
- command /perla:
- permission: zbroja.sk
- trigger:
- execute console command "give %player% enderpearl 1 name:&aNieskonczona_&5&lPerla"
- send "&8[&aPeterson&cDodatki&8] &aDostales &5&lPerle" to player
- set {perla.%player%} to "1"
- every second:
- loop all players:
- if tool of loop-player is ender pearl named "&aNieskonczona &5&lPerla":
- set {perla.%loop-player%} to "1"
- on tool change:
- if {perla.%player%} is "1":
- set {perla.%player%} to "0"
- #-----------------------|
- # Slady |
- #-----------------------|
- On shoot:
- trail projectile with particle red dust
- on projectile hit:
- if projectile is enderpearl:
- spawn 150 of particle portal offset by 1, 1, 1 at location of shooter
- play raw sound "mob.endermen.death" at projectile with pitch 1 volume 10
- #-----------------------|
- # Dzialanie |
- #-----------------------|
- on right click:
- if tool of player is bow named "&a&lLuk Szybkosci &6&lI":
- if player has arrow:
- shoot arrow
- remove 1 arrow from player
- damage tool of player by 1
- else:
- send "&8[&aPeterson&cDodatki&8] &cNie masz strzal"
- stop
- if tool of player is bow named "&a&lLuk Szybkosci &6&lII":
- shoot arrow
- delete event-arrow
- set {us.%player%} to true
- if tool of player is bow named "&a&lLuk Szybkosci &6&lIII":
- shoot arrow
- create an explosion of force 2 at location of projectile
- delete event-arrow
- set {luk.%player%} to true
- if tool of player is bow named "&a&lLuk Szybkosci &6&lIV":
- shoot arrow at speed 4
- create an explosion of force 3 at location of projectile
- delete event-arrow
- set {luk.%player%} to true
- if tool of player is bow named "&a&lLuk Szybkosci &6&lV":
- set {luk.%player%} to true
- set {o.%player%} to true
- shoot arrow at speed 5
- create an explosion of force 4 at location of projectile
- delete event-arrow
- On left click:
- if tool of player is bow named "&a&lLuk Szybkosci &6&lIII":
- if {z.%player%} is "0":
- apply slowness 50 to player for 60 second
- set {z.%player%} to "1"
- On right click:
- if tool of player is bow named "&a&lLuk Szybkosci &6&lIII":
- if {z.%player%} is "1":
- wait second
- remove slowness from the player
- set {z.%player%} to "0"
- #-----------------------|
- # Komendy |
- #-----------------------|
- command /u:
- permission: luk.sk
- trigger:
- give book named "&9Ulepszenie Do Luku &a&lPoziom &6&lI" to player
- give book named "&9Ulepszenie Do Luku &a&lPoziom &6&lII" to player
- give book named "&9Ulepszenie Do Luku &a&lPoziom &6&lIII" to player
- give book named "&9Ulepszenie Do Luku &a&lPoziom &6&lV" to player
- command /luk [<text>]:
- permission: luk.sk
- trigger:
- if arg 1 is not set:
- execute console command "give %player% bow 1 name:&a&lLuk_Szybkosci_&6&lI"
- if arg 1 is "1":
- execute console command "give %player% bow 1 name:&a&lLuk_Szybkosci_&6&lI"
- if arg 1 is "2":
- execute console command "give %player% bow 1 name:&a&lLuk_Szybkosci_&6&lII"
- if arg 1 is "3":
- execute console command "give %player% bow 1 name:&a&lLuk_Szybkosci_&6&lIII"
- if arg 1 is "4":
- execute console command "give %player% bow 1 name:&a&lLuk_Szybkosci_&6&lIV"
- if arg 1 is "5":
- execute console command "give %player% bow 1 name:&a&lLuk_Szybkosci_&6&lV"
- command /zoom:
- trigger:
- set {z.%player%} to "0"
- #-----------------------|
- # Efekty |
- #-----------------------|
- on projectile hit:
- if {luk.%shooter%} is true:
- if projectile is arrow:
- delete event-arrow
- on projectile hit:
- if {us.%shooter%} is true:
- if projectile is arrow:
- delete event-arrow
- on damage:
- if damage cause is projectile:
- if {o.%shooter%} is true:
- if projectile is arrow:
- apply poison 2 to victim for 5 second
- delete event-arrow
- #-----------------------|
- # Zmienne |
- #-----------------------|
- on tool change:
- set {luk} to false
- set {us} to false
- #-----------------------|
- # Craftingi |
- #-----------------------|
- on script load:
- register new shaped recipe for bow named "&a&lLuk Szybkosci &6&lI" using diamond block, diamond block, diamond block, diamond block, bow, diamond block, diamond block, diamond block, diamond block
- on script load:
- register new shaped recipe for book named "&9Ulepszenie Do Luku &a&lPoziom &6&lI" using emerald block, emerald block, emerald block, emerald block, bow, emerald block, emerald block, emerald block, emerald block
- #-----------------------|
- # Ulepszenia |
- #-----------------------|
- #Poziom 1 - 2
- on right click:
- if tool of player is book named "&9Ulepszenie Do Luku &a&lPoziom &6&lI":
- if player has bow named "&a&lLuk Szybkosci &6&lI":
- remove bow named "&a&lLuk Szybkosci &6&lI" from player
- give player bow named "&a&lLuk Szybkosci &6&lII"
- remove book named "&9Ulepszenie Do Luku &a&lPoziom &6&lI" from player
- #Poziom 2 - 3
- on right click:
- if tool of player is book named "&9Ulepszenie Do Luku &a&lPoziom &6&lII":
- if player has bow named "&a&lLuk Szybkosci &6&lII":
- remove bow named "&a&lLuk Szybkosci &6&lII" from player
- give player bow named "&a&lLuk Szybkosci &6&lIII"
- remove book named "&9Ulepszenie Do Luku &a&lPoziom &6&lII" from player
- else:
- send "&8[&aPeterson&cDodatki&8] &cNie Masz &a&lLuku Szybkosci &6&lII"
- #Poziom 3 - 4
- on right click:
- if tool of player is book named "&9Ulepszenie Do Luku &a&lPoziom &6&lIII":
- if player has bow named "&a&lLuk Szybkosci &6&lIII":
- remove bow named "&a&lLuk Szybkosci &6&lIII" from player
- give player bow named "&a&lLuk Szybkosci &6&lIV"
- remove book named "&9Ulepszenie Do Luku &a&lPoziom &6&lIII" from player
- #Poziom 4 - 5
- on right click:
- if tool of player is book named "&9Ulepszenie Do Luku &a&lPoziom &6&lIV":
- if player has bow named "&a&lLuk Szybkosci &6&lIV":
- remove bow named "&a&lLuk Szybkosci &6&lIV" from player
- give player bow named "&a&lLuk Szybkosci &6&lV"
- remove book named "&9Ulepszenie Do Luku &a&lPoziom &6&lIV" from player
- on right click:
- if tool of player is book named "&9Ulepszenie Do Luku &a&lPoziom &6&lI":
- if player has bow named "&a&lLuk Szybkosci &6&lI":
- remove bow named "&a&lLuk Szybkosci &6&lI" from player
- give player bow named "&a&lLuk Szybkosci &6&lII"
- remove book named "&9Ulepszenie Do Luku &a&lPoziom &6&lI" from player
- command /goblin:
- permission: goblin.sk
- trigger:
- give player diamond helmet named "&a&lKaptor Goblina"
- give player diamond chestplate named "&a&lKlata Goblina"
- give player diamond boots named "&a&lButy Goblina"
- On Damage:
- if chestplate of victim is diamond chestplate named "&a&lKlata Goblina":
- push attacker horizontally backwards at speed 10
- apply poison 1 to attacker for 5 second
- #--------------------
- # Buty Goblina |
- #--------------------
- On Damage:
- if boots of victim is diamond boots named "&a&lButy Goblina":
- if damage cause is fall:
- set {w.%victim%} to "1"
- cancel event
- create an explosion of force 2 at location of victim
- push victim downwards at speed 1
- spawn 15 of particle smoke offset by 1, 1, 1 at location of victim
- wait 3 second
- set {w.%victim%} to "0"
- On Damage:
- if {w.%victim%} is "1":
- if damage type is block explosion or entity explosion:
- cancel event
- On script load:
- loop all players:
- set {s.%loop-player%} to "0"
- set {w.%loop-player%} to "0"
- on script load:
- register new shaped recipe for diamond helmet named "&a&lKaptor Goblina" using 57, 57, 57, 57, 367, 57, 0, 0, 0
- on script load:
- register new shaped recipe for diamond chestplate named "&a&lKlata Goblina" using 57, 367, 57, 57, 57, 57, 57, 57, 57
- on script load:
- register new shaped recipe for diamond leggings named "&a&lSpodnie Goblina" using 57, 57, 57, 57, 367, 57, 57, 0, 57
- on script load:
- register new shaped recipe for diamond boots named "&a&lButy Goblina" using 368, 368, 368, 368, 368, 368, 368, 368, 368
- on script load:
- register new shaped recipe for ender pearl named "&a&lMiecz &8&lStrachu" using 368, 368, 368, 368, 368, 368, 368, 368, 368
- #--------------------
- # Miecz Strachu |
- #--------------------
- On Damage:
- if tool of attacker is diamond sword named "&a&lMiecz &8&lStrachu":
- apply nausea 1 to the victim for 1 seconds
- apply blindness 3 to the victim for 1 seconds
- command /ms:
- permission: miecz2.sk
- trigger:
- give diamond sword named "&a&lMiecz &8&lStrachu" to player
- Every second:
- loop all players:
- if helmet of loop-player is diamond helmet named "&a&lKaptor Goblina":
- apply water breathing
- every 1 second:
- loop all players:
- if leggings of loop-player is diamond leggings named "&a&lSpodnie Szybkosci &6&lI":
- apply speed 2 to the loop-player for 1 seconds
- on script load:
- register new shaped recipe for 312 named "&a&lSpodnie Szybkosci &6&lI" using 57, 57, 57, 57, 0, 57, 57, 0, 57
- command /spodnie:
- permission: set.sk
- trigger:
- execute console command "give %player% 312 1 name:&a&lSpodnie_Szybkosci_&6&lI"
- send "&8[&aPeterson&cDodatki&8] &aDostales &a&lSpodnie Szybkosci"
Advertisement
Add Comment
Please, Sign In to add comment