How did you all run unlimited arena? without lagging. also without bungeecord
- Clone World ( When start a minigame )
- increment x,y [Generated World] (Paste Schematic)
- Any others ways?
code_language.skript:
on skript start:
delete {tdm.arena.id::*}
add "TDM-0" to {tdm.arena.id::*}
loop 8 times:
loop 8 times:
add "TDM-%loop-number-2%-%loop-number-1%" to {tdm.arena.id::*}
code_language.skript:
function setMapLocation(a: text) :: text:
loop {tdm.arena.id::*}:
remove loop-value from {tdm.arena.id::*}
set {_num::*} to loop-value split at "-"
set {tdm.%{_a}%.map} to {_maploc}
stop loop
set {_num::2} to {_num::2} parsed as number
set {_num::3} to {_num::3} parsed as number
if {_num::2} = 0:
return "*0"
if {_num::2} / (8 * {_num::3}) = 0.125:
return "+x|+y|*%{_num::3}%"
if {_num::2} / (8 * {_num::3}) = 0.25:
return "+x|*%{_num::3}%"
if {_num::2} / (8 * {_num::3}) = 0.375:
return "+x|-y|*%{_num::3}%"
if {_num::2} / (8 * {_num::3}) = 0.5:
return "-y|*%{_num::3}%"
if {_num::2} / (8 * {_num::3}) = 0.625:
return "-x|-y|*%{_num::3}%"
if {_num::2} / (8 * {_num::3}) = 0.75:
return "-x|*%{_num::3}%"
if {_num::2} / (8 * {_num::3}) = 0.875:
return "-y|+x|*%{_num::3}%"
if {_num::2} / (8 * {_num::3}) = 1:
return "+y|*%{_num::3}%"
stop