Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /loadvideo <text>:
- trigger:
- send "&8(&c!&8) &7Loading video..."
- set {_numbers} to text from url "%arg-1%"
- set {_c} to 1
- set {_chars::*} to {_numbers} split at ""
- set {_frames} to length of ({_numbers}) / 900
- send "&8(&c!&8) &7Found &c%{_frames}% &7frames. Loading..."
- loop {_frames} times:
- set {_col} to 1
- set {_row} to 1
- loop 30 times:
- loop 30 times:
- set {_char} to {_chars::%{_c}%}
- {_char} is "1":
- execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 15"
- else if {_char} is "0":
- execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 0"
- else if {_char} is "2":
- execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 2"
- else if {_char} is "3":
- execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 3"
- else if {_char} is "4":
- execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 4"
- else if {_char} is "5":
- execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 5"
- else if {_char} is "6":
- execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 6"
- else if {_char} is "7":
- execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 7"
- else if {_char} is "8":
- execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 8"
- else if {_char} is "9":
- execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 wool 9"
- else:
- execute console command "setblock %-23 + {_col}% %39 - {_row}% 100 air "
- add 1 to {_col}
- add 1 to {_c}
- add 1 to {_row}
- set {_col} to 1
- wait 6 ticks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement