Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Command /troll [<text>]:
- trigger:
- if arg-1 is not set:
- set gamemode of player to creative
- apply invisibility without any particles to the player for 99 minutes
- give player a stick named "&4Firestick" with lore "&rHeiße Sache"
- open virtual chest inventory with size 4 named "&3&lTroll-Gui" to player
- wait 1 tick
- set {_Anzahl} to 0
- loop all players:
- add loop-player to {_players::*}
- loop {_players::*}:
- set {_player} to first element out of {_players::*}
- create a gui slot {_Anzahl} of player with loop-value's skull named "%loop-value%"
- remove {_player} from {_players::*}
- add 1 to {_Anzahl}
- if arg-1 is "off":
- set gamemode of player to survival
- clear all effects of player
- on inventory click:
- inventory name of player's current inventory is "&3&lTroll-Gui":
- set {_name} to name of item parsed as player
- set walk speed of {_name} to 0
- set fly speed of {_name} to 0
- apply blindness to {_name} for 60 seconds
- set {_loc} to location of {_name}
- if metadata value "Frozen" of {_name} is set:
- delete metadata value "Frozen" of {_name}
- set walk speed of {_name} to 0.2
- set fly speed of {_name} to 0.1
- clear effects of {_name}
- stop
- if metadata value "Frozen" of {_name} is not set:
- set metadata value "Frozen" of {_name} to true
- while metadata value "Frozen" of {_name} is set:
- if distance between {_name} and {_loc} is greater than 0.1:
- teleport {_name} to {_loc}
- wait 1 tick
- on right click holding stick:
- players tool is stick named "&4Firestick" with lore "Heiße Sache"
- shoot a fireball from player
- #youtube.com/L0v0lup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement