Facebook
From Ehsan, 8 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 223
  1. command /armorstandcircle:
  2.     trigger:
  3.         set {_playerX} to x-coordinate of player
  4.         set {_playerY} to y-coordinate of player
  5.         set {_playerZ} to z-coordinate of player
  6.         set {_radius} to 5 # Radius of the circle
  7.  
  8.         loop 1 to 100:
  9.             set {_angle} to (loop-number / 100) * 360
  10.             set {_radians} to {_angle} converted to radians
  11.             set {_x} to cos({_radians}) * {_radius}
  12.             set {_z} to sin({_radians}) * {_radius}
  13.  
  14.             execute console command "summon minecraft:armor_stand %{_playerX} + {_x} % {_playerY} % %{_playerZ} + {_z} %"