options:
yükseklik: 10
kum_genlişlik: 10
kum_yükseklik: 1
command /kum:
trigger:
set {_location1} to player's location
set {_location2} to player's location
set y-coordinate of {_location1} to y-coordinate of {_location1} + {@yükseklik}
set y-coordinate of {_location2} to y-coordinate of {_location2} + {@yükseklik}
loop {@kum_genlişlik} times:
set z-coordinate of {_location1} to z-coordinate of {_location1} + 1
set x-coordinate of {_location1} to x-coordinate of {_location1} + 1
loop {@kum_genlişlik} times:
set z-coordinate of {_location2} to z-coordinate of {_location2} - 1
set x-coordinate of {_location2} to x-coordinate of {_location2} - 1
set {_1_x} to matrixProjects("%x-coordinate of {_location1}%")
set {_1_y} to matrixProjects("%y-coordinate of {_location1} + {@kum_yükseklik}%")
set {_1_z} to matrixProjects("%z-coordinate of {_location1}%")
set {_2_x} to matrixProjects("%x-coordinate of {_location2}%")
set {_2_y} to matrixProjects("%y-coordinate of {_location2}%")
set {_2_z} to matrixProjects("%z-coordinate of {_location2}%")
execute console command "fill %{_1_x}% %{_1_y}% %{_1_z}% %{_2_x}% %{_2_y}% %{_2_z}% stone"
function matrixProjects(s: string) :: string:
set {_return::*} to split {_s} at "."
return {_return::1}