How do i make it NOT blinking? i tried to only set it(no delete) but it wont work. it was originally
but i want to change it since it can't have 2 lines. and if i try to wait 1 second instead of 10 ticks, it'll skip 2 seconds instead of 1.
Python:
send action bar
Python:
function exptime(p: player):
if {exptime::%{_p}%} is not set:
set {exptime::%{_p}%} to 10 seconds
set {exptime::expire::%{_p}%} to {exptime::%{_p}%} from now
set {exp::%{_p}%} to true
while {exp::%{_p}%} is true:
if "%difference between now and {exptime::expire::%{_p}%}%" contains "second":
if "%difference between now and {exptime::expire::%{_p}%}%" contains ".":
set {_s::*} to split "%difference between now and {exptime::expire::%{_p}%}%" at "."
else:
set {_s::*} to split "%difference between now and {exptime::expire::%{_p}%}%" at " seconds"
set {_s2::*} to split {_s::1} at "and "
if "%difference between now and {exptime::expire::%{_p}%}%" contains "minute":
set {_m::*} to split "%difference between now and {exptime::expire::%{_p}%}%" at " minute"
else if "%difference between now and {exptime::expire::%{_p}%}%" contains "minutes":
set {_m::*} to split "%difference between now and {exptime::expire::%{_p}%}%" at " minutes"
else:
delete {_m::1}
if {_m::1} is not set:
set {_bar} to boss bar with id "expcount" with title "&8Double Exp Enabled:&4&l %{_s2::1}%s &r&8left"
add {_p} to {_bar}
wait 10 ticks
delete boss bar with id "expcount"
else:
if {_s2::2} is set:
set {_bar} to boss bar with id "expcount" with title "&8Double Exp Enabled:&4&l %{_m::1}%m %{_s2::2}%s &r&8left"
add {_p} to {_bar}
wait 10 ticks
delete boss bar with id "expcount"
else:
set {_bar} to boss bar with title "&8Double Exp Enabled:&4&l %{_m::1}%m &r&8left"
add {_p} to {_bar}
wait 10 ticks
delete boss bar with id "expcount"
wait 1 second
if {_s::1} = "0":
delete boss bar with id "expcount"
delete {exp::%{_p}%}
delete {exptime::expire::%{_p}%}
delete {exptime::%{_p}%}