7mm

【Skript】Pushコマンド

7mm
May 2nd, 2018
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. command /push <text> <player> [<number>] [<number>]:
  2. trigger:
  3. if arg 3 is not set:
  4. set {_pushPowerLow} to 0.3
  5. else:
  6. set {_pushPowerLow} to arg 3
  7. if arg 4 is not set:
  8. set {_pushPowerHigh} to 1.5
  9. else:
  10. set {_pushPowerHigh} to arg 4
  11. set {_pushPower} to random number between {_pushPowerLow} to {_pushPowerHigh}
  12. if arg 1 is "x":
  13. push arg-2 east at speed {_pushPower}
  14. if arg 1 is "y":
  15. push arg-2 upwards at speed {_pushPower}
  16. if arg 1 is "z":
  17. push arg-2 south at speed {_pushPower}
Advertisement
Add Comment
Please, Sign In to add comment