daily pastebin goal
19%
SHARE
TWEET

Untitled

akon1248 Feb 20th, 2019 (edited) 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     #2段ジャンプの前方にかかる力
  3.     aheadpower: 1
  4.    
  5.     #2段ジャンプの上方にかかる力
  6.     uppower: 1
  7.    
  8.     #クールタイム(秒)
  9.     cooltime: 10
  10.    
  11.     #クールタイムを有効にするかどうか
  12.     cooltime_is_enable: false
  13.  
  14.  
  15.  
  16.  
  17. command /doublejump <player> <boolean>:
  18.     permission: doublejump.admin
  19.     permission message: &cYou do not have permission to use this command.
  20.     usage: /doublejump <player> <true or false>
  21.     trigger:
  22.         if arg-2 is true:
  23.             set {doublejump.%arg-1%} to 1
  24.             send "&7%arg-1%の2段ジャンプを使用可能にしました"
  25.             set arg-1's flight mode to true
  26.         else if arg-2 is false:
  27.             delete {doublejump.%arg-1%}
  28.             send "&7%arg-1%の2段ジャンプを使用不可能にしました"
  29.             arg-1's gamemode is survival or adventure
  30.             set arg-1's flight mode to false
  31. on gamemode change:
  32.     {doublejump.%player%} is 1
  33.     player's gamemode is survival or adventure
  34.     if {@cooltime_is_enable} is true:
  35.         {doublejump.cooltime.%player%} is not set
  36.         set player's flight mode to true
  37.     else if {@cooltime_is_enable} is false:
  38.         player is on ground
  39.         set player's flight mode to true
  40. on flight toggle:
  41.     player's gamemode is survival or adventure
  42.     player is not flying
  43.     {doublejump.%player%} is 1
  44.     if {@cooltime_is_enable} is true:
  45.         {doublejump.cooltime.%player%} is not set
  46.         wait 1 tick
  47.         while player is flying:
  48.             push player horizontal forwards with speed {@aheadpower}
  49.             push player upwards with speed {@uppower}
  50.             set {doublejump.cooltime.%player%} to {@cooltime}*20
  51.             set player's flight mode to false
  52.     else if {@cooltime_is_enable} is false:
  53.         wait 1 tick
  54.         while player is flying:
  55.             push player horizontal forwards with speed {@aheadpower}
  56.             push player upwards with speed {@uppower}
  57.             set player's flight mode to false
  58. on any movement:
  59.     player's gamemode is survival or adventure
  60.     {doublejump.%player%} is 1
  61.     {@cooltime_is_enable} is false
  62.     player is on ground
  63.     set player's flight mode to true
  64. every tick:
  65.     loop all players:
  66.         {doublejump.cooltime.%loop-player%} >= 1
  67.         remove 1 from {doublejump.cooltime.%loop-player%}
  68.         {doublejump.cooltime.%loop-player%} is 0
  69.         set loop-player's flight mode to true
  70.         delete {doublejump.cooltime.%loop-player%}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top