i want to set the worldborder by a value from scoreboard.
I have a scorceboard which contains a value (100) and i want to set the worldborder by this value.
In programming Languge:
var $scoreboard = 100
worldborder set $scoreboard
how i can do this with commands or functions?
It's not possible to do it easily. The only way is to make a function that will call another function which increase the world border by 1 as many time as you have score.
The first function will be like this : (function name : this_function)
scoreboard players remove #distance 1
execute if score #distance matches 1.. run function datapack:this_function
and the second will simply be : (function name : increase)
worldborder add 1
I like trains... OF CHAIN COMMAND BLOCKS !