#Why does it not work?
1 messages · Page 1 of 1 (latest)
no
There is no error message
how to debug im a newbie
before every condition, broadcast what that condition tests
I know why now
set {temp} to loop-index
if {temp} is online:
if {temp}'s gamemode is survival or adventure:
these once
loop index is a text, not a uuid
But how to fix it?
bruh
ah i see
you are using names in variables
you should use uuid instead
still need help
use uuid not names in variables
bruh
but i didnt
do you mean this?
# Require skbee
on first join:
set {age::%uuid of player%} to 5
Every second:
broadcast "Second"
loop {age::*}:
broadcast "found player"
set {temp} to loop-index
if {temp} is online:
broadcast "Is online"
if {temp}'s gamemode is survival or adventure:
broadcast "right mode"
if {age::%loop-index%} is a number:
broadcast "added value"
set {age::%loop-index%} to loop-value + 1
set title of {temp}'s scoreboard to "&eServer"
set line 1 of {temp}'s scoreboard to "&fAge: %{age::%loop-index%}%"
if {age::%loop-index%} is 100:
set {age::%loop-index%} to "Max"
On join:
set {age::%uuid of player%} to 5
set title of player's scoreboard to "&eServer"
set line 1 of player's scoreboard to "&fAge: %{age::%player%}%"
try it and see
wont work
# Required plugin: SkBee
# Set the age on first join
on first join:
set {age::%player%} to 5
# Increase the age every second for players in survival or adventure mode
Every second:
loop {age::*}:
set {temp} to loop-index
if {temp} is online:
if {temp}'s gamemode is survival or adventure:
if {age::%loop-index%} is a number:
set {age::%loop-index%} to loop-value + 1
set title of {temp}'s scoreboard to "&eServer"
set line 1 of {temp}'s scoreboard to "&fAge: %{age::%loop-index%}%"
if {age::%loop-index%} is 100:
set {age::%loop-index%} to "Max"
# Set the age on join
on join:
set {age::%player%} to 5
set title of player's scoreboard to "&eServer"
set line 1 of player's scoreboard to "&fAge: %{age::%player%}%"
think that should work
wont work
oh
i need to know how to convert text to uuid