Advertisement
L0v0lup

[Tutorial] Troll Skript / Minesucht #67 SKRIPT

May 30th, 2018
1,385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. Command /troll [<text>]:
  2. trigger:
  3. if arg-1 is not set:
  4. set gamemode of player to creative
  5. apply invisibility without any particles to the player for 99 minutes
  6. give player a stick named "&4Firestick" with lore "&rHeiße Sache"
  7. open virtual chest inventory with size 4 named "&3&lTroll-Gui" to player
  8. wait 1 tick
  9. set {_Anzahl} to 0
  10. loop all players:
  11. add loop-player to {_players::*}
  12. loop {_players::*}:
  13. set {_player} to first element out of {_players::*}
  14. create a gui slot {_Anzahl} of player with loop-value's skull named "%loop-value%"
  15. remove {_player} from {_players::*}
  16. add 1 to {_Anzahl}
  17. if arg-1 is "off":
  18. set gamemode of player to survival
  19. clear all effects of player
  20.  
  21. on inventory click:
  22. inventory name of player's current inventory is "&3&lTroll-Gui":
  23. set {_name} to name of item parsed as player
  24. set walk speed of {_name} to 0
  25. set fly speed of {_name} to 0
  26. apply blindness to {_name} for 60 seconds
  27. set {_loc} to location of {_name}
  28. if metadata value "Frozen" of {_name} is set:
  29. delete metadata value "Frozen" of {_name}
  30. set walk speed of {_name} to 0.2
  31. set fly speed of {_name} to 0.1
  32. clear effects of {_name}
  33. stop
  34. if metadata value "Frozen" of {_name} is not set:
  35. set metadata value "Frozen" of {_name} to true
  36. while metadata value "Frozen" of {_name} is set:
  37. if distance between {_name} and {_loc} is greater than 0.1:
  38. teleport {_name} to {_loc}
  39. wait 1 tick
  40.  
  41. on right click holding stick:
  42. players tool is stick named "&4Firestick" with lore "Heiße Sache"
  43. shoot a fireball from player
  44.  
  45. #youtube.com/L0v0lup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement