Advertisement
Zeldaboy111

Skript Tutorial #6 Cosmetic GUI

Sep 12th, 2018
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     {cfireworkspark::%arg 1%} = {cfireworkspark::%loop-player%}
  3.     {cwolfhearts::%arg 1%} = {cwolfhearts::%loop-player%}
  4.  
  5. on join:
  6.     player is in world "world":
  7.         clear the player's inventory
  8.         set slot 4 of player to a chest named "&6Cosmetics" with lore "&7Open een cosmetic GUI"
  9.  
  10. on leftclick:
  11.     if player is holding a chest named "&6Cosmetics" with lore "&7Open een cosmetic GUI":
  12.         execute console command "/cosmetic open %player%"
  13.         cancel event
  14.  
  15. on rightclick:
  16.     player is holding a chest named "&6Cosmetics" with lore "&7Open een cosmetic GUI":
  17.         execute console command "/cosmetic open %player%"
  18.         cancel event
  19.  
  20.  
  21. command /cosmetic open <offline player>:
  22.     executable by: console
  23.     trigger:
  24.         open chest with 1 rows named "&6Cosmetics" to arg 1
  25.         format slot 0 of arg 1 with leather boots dyed white named "&f&lFirework Sparks" with lore "&710 secondes vuurwerk particles" to close then run [execute console command "cparticle firework %arg 1%"]
  26.         format slot 1 of arg 1 with bone named "&4&lWolf Hearts" with lore "&710 secondes wolven hartjes particles" to close then run [execute console command "cparticle wolfheart %arg 1%"]
  27.  
  28.  
  29. command /cparticle <text> <offline player>:
  30.     executable by: console
  31.     trigger:
  32.         if arg 1 is "firework":
  33.             send "&5<Cosmetics> &dFirework Sparks particles aangezet" to arg 2
  34.             set {cfireworkspark::%arg 2%} to true
  35.             wait 10 seconds
  36.             set {cfireworkspark::%arg 2%} to false
  37.             send "&5<Cosmetics> &dFirework Sparks particles uitgezet" to arg 2
  38.             stop
  39.         if arg 1 is "wolfheart":
  40.             send "&5<Cosmetics> &4Deze particle is nog niet klaar." to arg 2
  41.             stop
  42.  
  43. every 5 ticks:
  44.     loop all players:
  45.         if {cfireworkspark::%loop-player%} is true:
  46.             show 50 "fireworks spark" particles at location of loop-player for loop-player offset by 0.5, 1, 0.5
  47.             stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement