forked from Scommander/ExplosionRebuilderDatapack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate.py
18 lines (15 loc) · 991 Bytes
/
generate.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
file = open("data/creeperfiller/functions/small_scan.mcfunction", "w")
'''Check radius generation'''
for x in range(-5, 6):
for y in range(-5, 6):
for z in range(-5, 6):
file.write(f"execute positioned ~{x} ~{y} ~{z} unless block ~ ~ ~ #creeperfiller:air if block ~ ~ ~ #creeperfiller:regenerateable align xyz unless entity @e[type=minecraft:marker,tag=s.crhf.block_marker,dx=0] positioned ~0.5 ~0.5 ~0.5 run function creeperfiller:spawn_marker\n")
file.close()
file = open("data/creeperfiller/functions/big_scan.mcfunction", "w")
'''Check radius generation'''
for x in range(-8, 9):
for y in range(-8, 9):
for z in range(-8, 9):
file.write(f"execute positioned ~{x} ~{y} ~{z} unless block ~ ~ ~ #creeperfiller:air if block ~ ~ ~ #creeperfiller:regenerateable align xyz unless entity @e[type=minecraft:marker,tag=s.crhf.block_marker,dx=0] positioned ~0.5 ~0.5 ~0.5 run function creeperfiller:spawn_marker\n")
file.close()
print("Finished")