Guest User

LEffect v1.0

a guest
Feb 11th, 2015
1,010
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.71 KB | None | 0 0
  1. variables:
  2.     {serca.%player%} = false
  3.     {plomyki.%player%} = false
  4.     {nuty.%player%} = false
  5.     {wybuch.%player%} = false
  6.     {magia.%player%} = false
  7.     {chmura.%player%} = false
  8.     {redd.%player%} = false
  9.     {fajerw.%player%} = false
  10.     {koleczki.%player%} = false
  11. options:
  12.     noperm:&7&L[&6&lLEffect&7&l]&a&lBrak Uprawnien do tego!
  13. command /leffect:
  14.     permission: l.effekty
  15.     permission message:%{@noperm}%
  16.     trigger:
  17.         open chest with 3 rows named "&6&lL efect" to player
  18.         wait 2 ticks
  19.         format slot 0 of player with 1 of vines named "" to close
  20.         format slot 1 of player with 1 of vines named "" to close
  21.         format slot 2 of player with 1 of vines named "" to close
  22.         format slot 3 of player with 1 of vines named "" to close
  23.         format slot 4 of player with 1 of glass pane named "" to close
  24.         format slot 5 of player with 1 of vines named "" to close
  25.         format slot 6 of player with 1 of vines named "" to close
  26.         format slot 7 of player with 1 of vines named "" to close
  27.         format slot 8 of player with 1 of vines named "" to close
  28.         format slot 9 of player with 1 of block of redstone named "&a&lEfekt:" with lore "&4&lSerca" to run "efekt %player% serca"
  29.         format slot 10 of player with 1 of fire named "&a&lEfekt:" with lore "&4&lPlomyki" to run "efekt %player% plomyki"
  30.         format slot 11 of player with 1 of note block named "&a&lEfekt:" with lore "&1&lNuty" to run "efekt %player% nuty"
  31.         format slot 12 of player with 1 of tnt named "&a&lEfekt:" with lore "&8&lWybuch" to run "efekt %player% wybuch"
  32.         format slot 13 of player with 1 of enchantment table named "&a&lEfekt:" with lore "&b&lMagia" to run "efekt %player% magia"
  33.         format slot 14 of player with 1 of snow named "&a&lEfekt:" with lore "&7&lChmura" to run "efekt %player% chmura"
  34.         format slot 15 of player with 1 of redstone named "&a&lEfekt:" with lore "&7&lRedstone" to run "efekt %player% redd"
  35.         format slot 16 of player with 1 of firework rocket named "&a&lEfekt:" with lore "&7&lFajerwerki" to run "efekt %player% fajerw"
  36.         format slot 17 of player with 1 of eye of ender named "&a&lEfekt:" with lore "&5&lKoleczki" to run "efekt %player% koleczki"
  37.         format slot 18 of player with 1 of vines named "" to close
  38.         format slot 19 of player with 1 of vines named "" to close
  39.         format slot 20 of player with 1 of vines named "" to close
  40.         format slot 21 of player with 1 of vines named "" to close
  41.         format slot 22 of player with 1 of glass pane named "&C&LReset ALL!" to run "efekt %player% reset"
  42.         format slot 23 of player with 1 of vines named "" to close
  43.         format slot 24 of player with 1 of vines named "" to close
  44.         format slot 25 of player with 1 of vines named "" to close
  45.         format slot 26 of player with 1 of vines named "" to close
  46. command /efekt [<player>] [<text>]:
  47.     trigger:
  48.         if arg 2 is "serca":
  49.             if {serca.%arg-player%} is false:
  50.                 set {serca.%arg-player%} to true
  51.             else:
  52.                 set {serca.%arg-player%} to false
  53.         if arg 2 is "plomyki":
  54.             if {plomyki.%arg-player%} is false:
  55.                 set {plomyki.%arg-player%} to true
  56.             else:
  57.                 set {plomyki.%arg-player%} to false
  58.         if arg 2 is "nuty":
  59.             if {nuty.%arg-player%} is false:
  60.                 set {nuty.%arg-player%} to true
  61.             else:
  62.                 set {nuty.%arg-player%} to false
  63.         if arg 2 is "wybuch":
  64.             if {wybuch.%arg-player%} is false:
  65.                 set {wybuch.%arg-player%} to true
  66.             else:
  67.                 set {wybuch.%arg-player%} to false
  68.         if arg 2 is "magia":
  69.             if {magia.%arg-player%} is false:
  70.                 set {magia.%arg-player%} to true
  71.             else:
  72.                 set {magia.%arg-player%} to false
  73.         if arg 2 is "chmura":
  74.             if {chmura.%arg-player%} is false:
  75.                 set {chmura.%arg-player%} to true
  76.             else:
  77.                 set {chmura.%arg-player%} to false
  78.         if arg 2 is "redd":
  79.             if {redd.%arg-player%} is false:
  80.                 set {redd.%arg-player%} to true
  81.             else:
  82.                 set {redd.%arg-player%} to false
  83.         if arg 2 is "fajerw":
  84.             if {fajerw.%arg-player%} is false:
  85.                 set {fajerw.%arg-player%} to true
  86.             else:
  87.                 set {fajerw.%arg-player%} to false
  88.         if arg 2 is "koleczki":
  89.             if {koleczki.%arg-player%} is false:
  90.                 set {koleczki.%arg-player%} to true
  91.             else:
  92.                 set {koleczki.%arg-player%} to false
  93.         if arg 2 is "reset":
  94.             set {serca.%arg-player%} to false
  95.             set {plomyki.%arg-player%} to false
  96.             set {nuty.%arg-player%} to false
  97.             set {wybuch.%arg-player%} to false
  98.             set {magia.%arg-player%} to false
  99.             set {chmura.%arg-player%} to false
  100.             set {redd.%arg-player%} to false
  101.             set {fajerw.%arg-player%} to false
  102.             set {koleczki.%arg-player%} to false
  103.             send "Reset all!"
  104. every 1 seconds:
  105.     loop all players:
  106.         if {serca.%loop-player%} is true:
  107.             spawn 5 of particle heart offset by 0.5, 1, 0.5 at loop-player
  108.         if {plomyki.%loop-player%} is true:
  109.             spawn 5 of particle flame offset by 0.5, 1, 0.5 at loop-player
  110.         if {nuty.%loop-player%} is true:
  111.             spawn 5 of particle note offset by 0.5, 1, 0.5 at loop-player
  112.         if {wybuch.%loop-player%} is true:
  113.             spawn 5 of particle explode offset by 0.5, 1, 0.5 at loop-player
  114.         if {magia.%loop-player%} is true:
  115.             spawn 10 of particle spell offset by 0.5, 1, 0.5 at loop-player
  116.         if {fajerw.%loop-player%} is true:
  117.             spawn 10 of particle cloud offset by 0.5, 1, 0.5 at loop-player
  118.         if {redd.%loop-player%} is true:
  119.             spawn 10 of particle red_dust offset by 0.5, 1, 0.5 at loop-player
  120.         if {fajerw.%loop-player%} is true:
  121.             spawn 5 of particle fireworks_Spark offset by 0.5, 1, 0.5 at loop-player
  122.         if {koleczki.%loop-player%} is true:
  123.             spawn 5 of particle magic_Crit offset by 0.5, 1, 0.5 at loop-player
  124. on quit:
  125.     set {serca.%player%} to false
  126.     set {plomyki.%player%} to false
  127.     set {nuty.%player%} to false
  128.     set {wybuch.%player%} to false
  129.     set {magia.%player%} to false
  130.     set {chmura.%player%} to false
  131.     set {redd.%player%} to false
  132.     set {fajerw.%player%} to false
  133.     set {koleczki.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment