Advertisement
herhor67

FireWork - herhor67

Nov 4th, 2014
1,230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.60 KB | None | 0 0
  1. variables:
  2.     {fajerwerki} = true
  3. options:
  4.     tag: &7[&4Fire&fWork&7]
  5.  
  6. on place of sponge:
  7.     name of player's tool is "&6Firework dodaj":
  8.         cancel event
  9.         loop {fireworks::*}:
  10.             loop-value is location of event-block:
  11.                 send "{@tag} &cTu juz jest fajerwerek!"
  12.                 stop
  13.         add location of block to {fireworks::*}
  14.         send "{@tag} &6Dodano fajerwerek!"
  15. #------------------------------------------------------------#
  16.     name of player's tool is "&6Firework usun":
  17.         cancel event
  18.         loop {fireworks::*}:
  19.             loop-value is location of event-block:
  20.                 remove location of block from {fireworks::*}
  21.                 send "{@tag} &6Usunięto fajerwerek!"
  22.                 stop
  23.         send "{@tag} &cTu nie ma fajerwerka!"
  24.  
  25. command /firework [<text="pomoc">]:
  26.     permission: fireworks.*
  27.     trigger:
  28.         arg is "pomoc":
  29.             send "{@tag}"
  30.             send "&c/firework dodaj &6- daje gąbkę do dodania fajerwerków"
  31.             send "&c/firework usun &6- daje gąbkę do usunięcia fajerwerków"
  32.             send "&c/firework przelacz &6- włącza lub wyłącza fajerwerki"
  33.         arg is "dodaj":
  34.             give player 1 sponge named "&6Firework dodaj"
  35.         arg is "usun":
  36.             give player 1 sponge named "&6Firework usun"
  37.         arg is "przelacz":
  38.             {fajerwerki} is true:
  39.                 set {fajerwerki} to false
  40.                 send "{@tag} &6- &c%{fajerwerki}%"
  41.                 broadcast "{@tag} &6Fajerwerki zostały włączone!"
  42.                 stop
  43.             {fajerwerki} is false:
  44.                 set {fajerwerki} to true
  45.                 send "{@tag} &6- &c%{fajerwerki}%"
  46.                 broadcast "{@tag} &6Fajerwerki zostały wyłączone!"
  47.  
  48.  
  49.  
  50. # ball, ball large, burst, creeper, star // typy fajerwerków #
  51. every second:
  52.     {fajerwerki} is true:
  53.         execute server command "/fwglobalpusc"
  54. command /fwglobalpusc:
  55.     permission: launch.firework
  56.     trigger:
  57.         add ball large to {_fireworktype::*}
  58.         add creeper to {_fireworktype::*}
  59.         add ball to {_fireworktype::*}
  60.         add star to {_fireworktype::*}
  61.         add burst to {_fireworktype::*}
  62. #===========================================#
  63.         add blue to {_color::*}  # lapis, ok
  64.         add green to {_color::*}  # kaktus, ok
  65.         add aqua to {_color::*}  # jasnoniebieski, ok
  66.         add red to {_color::*}  # czerwony, ok
  67.         add purple to {_color::*}  # purpurowy, ok
  68.         add gold to {_color::*}  # pomaranczowy, ok
  69.         add lime to {_color::*}  # jasnozielony, ok
  70.         add pink to {_color::*}  # różowy, ok
  71.         add yellow to {_color::*}  # żółty, ok
  72.         add white to {_color::*}  # biały, ok
  73.         loop {fireworks::*}:
  74.             set {_czas} to 2 or 3
  75.             set {_fwtype} to a random element out of {_fireworktype::*}
  76.             set {_colorchoice} to a random element out of {_color::*}
  77.             launch flickering trailing {_fwtype} firework colored {_colorchoice} at loop-value timed {_czas}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement