Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fill(x: String, y: String, z: String, x2: String, y2: String, z2: String, world: String, block: String):
- set {_loc1} to location ({_x} parsed as a number), ({_y} parsed as a number), ({_z} parsed as a number) of world "%{_world}%"
- set {_loc2} to location ({_x2} parsed as a number), ({_y2} parsed as a number), ({_z2} parsed as a number) of world "%{_world}%"
- if {_block} is "scematic":
- loop blocks between block at {_loc1} and block at {_loc2}:
- if loop-block is air:
- set block at location of loop-block to green glass block
- else:
- set {_block::%location of loop-block%} to loop-block
- send "%{_block::%location of loop-block%}%" to console
- set block at location of loop-block to red glass block
Add Comment
Please, Sign In to add comment