Solved %x-coord of block at player%

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Andrew2000

Member
Aug 21, 2017
34
0
0
I know how to do this:

%x-coord of block at player%
%y-coord of block at player%
%z-coord of block at player%


but when i broadcast it, it broadcasts "561.2"
I don't want decimals and the stuff after that

How to only do numbers? :/
 
I know how to do this:

%x-coord of block at player%
%y-coord of block at player%
%z-coord of block at player%


but when i broadcast it, it broadcasts "561.2"
I don't want decimals and the stuff after that

How to only do numbers? :/
parse it as an integer
 
oh my god
i know how to parse things
but

Can't understand this expression: 'x-coord of block at player parsed as integer'
Can't understand this expression: '%x-coord of block at player% parsed as integer'
set {_x} to x-coord of block at player parsed as integer
 
Ooo actually found a better way. Use rounded instead. I always forget Bensku has it's own docs
02a996e02c.png
 
  • Like
Reactions: Andrew2000
oh my god
i know how to parse things
No need to be offensive here, if you don't explain your problems correctly everything we can do is guess what would be your problem. So, for the next time, instead of say "Oh my god, I know how to do this shit" let's say "I tried it but I got the following errors" and everyone will be happy.
 
Status
Not open for further replies.