#command problem (still unfixed)

1 messages · Page 1 of 1 (latest)

languid bear
#

I’ve looked all over skript forums and still don’t know how to do this. I want to make a simple command where when a player does /wbcheck it sends the player a message of how big the world border is.

upper cedar
cosmic lion
#

Don't use SkJade

#

WorldBorder - Stats (Expression) - SkBee

#

oops

#

need the link not the title

#
upper cedar
#

mb missed that one

#

also I thought skbee was for virtual borders bc that was almost all there was on the docs

cosmic lion
#

🤷‍♂️

languid bear
#

how do i fix that

worldly geode
#

isnt the set {_border} .. line giving you an error?

languid bear
#

no

#

im not getting any errors

worldly geode
#

also it's size of world border of world "world"

languid bear
#

actually yea

#

i am getting an error

#

so how would i put that in

#

im new to skript

#

😭

worldly geode
#

mate

worldly geode
languid bear
#

i got the rror

worldly geode
#

yes I know

#

because that's the wrong syntax, use what I provided ya

languid bear
#

so this

#

command /wbcheck:
trigger:
set size of world border of world "world"
send "&aThe current world border size is: %{_border}% blocks" to player

worldly geode
#

no

languid bear
#

command /wbcheck:
trigger:
set size of world border of world "world" to world border size of world "world"
send "&aThe current world border size is: %{_border}% blocks" to player

worldly geode
#

no

languid bear
#

im gonna crash out

worldly geode
languid bear
#

yea

worldly geode
#

I would recommend you learning the basics of skript first

languid bear
#

im just tryna do a simple command

#

all i need is what to put in and im fine 😭

worldly geode
#

ya should read that

languid bear
#

mate
can you just output what i have to put in. I'm not tryna go through the entirety of skript

worldly geode
languid bear
#

im crashing out

#

as we speak

worldly geode
#

{variable} in your case would be {_border}
and 1 would be size of world border of world "world"

worldly geode
languid bear
#

command /wbcheck:
trigger:
set {_border} to size of world border of world "world"
send "&aThe current world border size is: %{_border}% blocks" to player

#

?

worldly geode
languid bear
#

you

#

are

#

a

#

goat

#

!!

worldly geode
#

uh sure

languid bear
#

umm also would there be a way to give it the full border size by dividing the number by dividing it by 2

#

bc if i do /worldborder set 10000 (5,000 blocks)

#

in my mc server

worldly geode
#

yes?

#

you just divide it by 2

#

{_border} / 2

languid bear
#

k

#

error gg

worldly geode
#

send the error

languid bear
#

skript is making me look mentally challenged

worldly geode
#

no, I meant {_border} / 2 in the % where you're sending it

languid bear
#

k

#

so it would look like that

worldly geode
#

add a space after the /

languid bear
#

k

#

LMAO IMA CRASH OUT

worldly geode
#

send ya code

#

wait I just saw it

languid bear
#

command /wbcheck:
trigger:
set {_border} to size of world border of world "world"
send "&aThe current world border size is: %{_border / 2}% blocks" to player

worldly geode
#

you gotta put the / 2 outside the }

languid bear
#

k

languid bear
#

so still behind the percent

worldly geode
#

yes

#

here's an example:
%{poop} / 2%

languid bear
#

command /wbcheck:
trigger:
set {_border} to size of world border of world "world"
send "&aThe current world border size is: %{_border} /2 % blocks" to player

worldly geode
#

try it

#

and see

languid bear
#

oop i need to put a space

#

it works

#

yayayayyayaya

worldly geode
#

Good job highfive

languid bear
#

thx

worldly geode
#

You should now add the "Solved" tag to this thread

#

@languid bear