Advertisement
RedstoneKing106

Untitled

Feb 17th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. command /loadvideo <text>:
  2. trigger:
  3. send "&8(&c!&8) &7Loading video..."
  4. set {_numbers} to text from url "%arg-1%"
  5. set {_c} to 1
  6. set {_chars::*} to {_numbers} split at ""
  7. set {_frames} to length of ({_numbers}) / 900
  8. send "&8(&c!&8) &7Found &c%{_frames}% &7frames. Loading..."
  9. loop {_frames} times:
  10. set {_col} to 1
  11. set {_row} to 1
  12. loop 30 times:
  13. loop 30 times:
  14. set {_char} to {_chars::%{_c}%}
  15. {_char} is "1":
  16. execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 15"
  17. else if {_char} is "0":
  18. execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 0"
  19. else if {_char} is "2":
  20. execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 2"
  21. else if {_char} is "3":
  22. execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 3"
  23. else if {_char} is "4":
  24. execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 4"
  25. else if {_char} is "5":
  26. execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 5"
  27. else if {_char} is "6":
  28. execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 6"
  29. else if {_char} is "7":
  30. execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 7"
  31. else if {_char} is "8":
  32. execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 8"
  33. else if {_char} is "9":
  34. execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 9"
  35. else:
  36. execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 air "
  37. add 1 to {_col}
  38. add 1 to {_c}
  39. add 1 to {_row}
  40. set {_col} to 1
  41. wait 6 ticks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement