-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathperimaker.sc
81 lines (66 loc) · 3.03 KB
/
perimaker.sc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
__config() -> {'stay_loaded' -> false};
__command()->(
_p();
);
_p()->(
player=player();
x=query(player,'x');
z=query(player,'z');
x1 = round(x) + 150;
x2 = round(x) - 150;
z1 = round(z) + 150;
z2 = round(z) - 150;
run('carpet fillUpdates false');
run('carpet fillLimit 1000000');
i=4;
for(range(5,256),
i=i+1;
run('fill '+x1+' '+i+' '+z1+' '+x2+' '+i+' '+z2+' air');
print('y'+i+' just got removed.');
);
print(' ');
print('--------------------------');
print(' ');
j=0;
for(range(0,5),
j=j+1;
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace stone');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace andesite');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace granite');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace diorite');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace dirt');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace gravel');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace iron_ore');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace gold_ore');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace coal_ore');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace redstone_ore');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace diamond_ore');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace lapis_ore');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace emerald_ore');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace water');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace lava');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace obsidian');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace sand');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace red_sand');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace infested_stone');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace infested_cobblestone');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace infested_stone_bricks');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace infested_mossy_stone_bricks');
run('fill '+x1+' '+j+' '+z1+' '+x2+' '+j+' '+z2+' air replace infested_cracked_stone_bricks');
print('y'+j+' just got cleaned.');
);
print(' ');
print('--------------------------');
print(' ');
run('setblock '+round(x)+' '+64+' '+round(z)+' diamond_block');
print('Diamond block has been created. at '+round(x)+' 64 '+round(z)+'.');
print(' ');
print('--------------------------');
print(' ');
run('carpet fillUpdates true');
run('carpet fillLimit 32768');
print('All done. Enjoy your new perimeter!');
print(' ');
print('--------------------------');
print(' ');
);