Advertisement
L0v0lup

Skript ✎ Begrenzte Flugzeit für Spieler #149 Tutorial

Aug 14th, 2021
6,142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     Flytime: glowing paper named "&eFlugzeit: 30min"
  3.  
  4. command flytime:
  5.     trigger:
  6.         give player {@Flytime}
  7.         clear {flytimer::*}
  8.  
  9. on rightclick holding paper:
  10.     player's tool = {@Flytime}
  11.     if {flytimer::%player%} is set:
  12.         {flytimer::%player%} > 200
  13.         stop
  14.     delete player's tool
  15.     if world of player = "world": #!Optional
  16.         set fly mode of player to true
  17.         set fly speed of player to 0.1
  18.     set {flytimer::%player%} to 1800
  19.     send "Viel Spaß!"
  20.  
  21. every 2 seconds:
  22.     loop all players:
  23.         {flytimer::%loop-player%} > 0
  24.         set action bar of loop-player to "&8&oFlugzeit übrig: &7&o%{flytimer::%loop-player%}%s"
  25.         world of loop-player = "world": #!Optional
  26.             set fly mode of loop-player to true
  27.             set fly speed of loop-player to 0.1
  28.             subtract 2 from {flytimer::%loop-player%}
  29.         if {flytimer::%loop-player%} = 0:
  30.             set action bar of loop-player to "&cFlugzeit abgelaufen!"
  31.             wait 5 ticks
  32.             set fly mode of loop-player to false
  33.             apply slow falling 1 without any particles to loop-player for 15 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement