Zeldaboy111

Skript #201 - f

Jul 4th, 2019
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. function fill(x: String, y: String, z: String, x2: String, y2: String, z2: String, world: String, block: String):
  2. #set {_loc1} to ({_x}, {_y}, {_z} parsed as a location)
  3. #set {_loc2} to "%{_x2}%, %{_y2}%, %{_z2}%" parsed as a location
  4. set {_loc1} to location ({_x} parsed as a number), ({_y} parsed as a number), ({_z} parsed as a number) of world "%{_world}%"
  5. set {_loc2} to location ({_x2} parsed as a number), ({_y2} parsed as a number), ({_z2} parsed as a number) of world "%{_world}%"
  6. loop blocks between block at {_loc1} and block at {_loc2}:
  7. if loop-block is air:
  8. set block at location of loop-block to dirt
Add Comment
Please, Sign In to add comment