Zeldaboy111

Skript #211 - test

Jul 16th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. #Directions etc.
  2.  
  3. function fillDir(p: player, block: String, world: String, d: direction, x: String, y: String, z: String, loc2: location, xa: String, ya: String, za: String):
  4. set {_loc1} to location of ({_x} parsed as a number), ({_y} parsed as a number), ({_z} parsed as a number) of world "%{_world}%"
  5.  
  6. clear {scematic::block::%{_p}%::types::*}
  7. loop blocks between block at {_loc1} and block at {_loc2}:
  8.  
  9.  
  10.  
  11. #function fillDir(x: String, y: String, z: String, loc2: location, world: String, block: String, p: player):
  12. #set {_loc1} to location ({_x} parsed as a number), ({_y} parsed as a number), ({_z} parsed as a number) of world "%{_world}%"
  13. #if {_block} is "scematic_dirt_machine":
  14. # clear {scematic::block::%{_p}%::types::*}
  15. # loop blocks between block at {_loc1} and block at {_loc2}:
  16. # add "%location of loop-block%$%loop-block%" to {scematic::block::%{_p}%::types::*}
  17.  
  18. # if loop-block is air:
  19. # set block at location of loop-block to green glass block
  20.  
  21. # else:
  22. # set block at location of loop-block to red glass block
  23.  
  24. function addDir(dir: direction, add: number) :: number:
Add Comment
Please, Sign In to add comment