Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- initialHeight = 26;
- launchTntCount = 7;
- generateDetectorCircle();
- for (int i = 0; i < detectors.size(); i++) {
- Detector detector = detectors.get(i);
- System.out.println("# Detector " + i);
- System.out.printf("fill 0 28 %d %d 28 %d ender_chest%n", detector.z + (int)Math.signum(detector.z), detector.x, (int)Math.signum(detector.z));
- System.out.printf("fill %d 28 %d %d 28 %d ender_chest%n", detector.x - 1, detector.z - 1, detector.x + 1, detector.z + 1);
- System.out.printf("setblock %d 29 %d tripwire%n", detector.x, detector.z);
- System.out.printf("setblock %d 30 %d observer facing=down%n", detector.x, detector.z);
- System.out.printf("setblock %d 31 %d sandstone%n", detector.x, detector.z);
- long upperBound = getUpperSeedBound(i);
- System.out.printf("fill %d 32 %d %d 38 %d stone%n", detector.x, detector.z, detector.x, detector.z);
- System.out.printf("setblock %d 32 %d command_block facing=up replace {Command:\"testfor @e[tag=detectorLock,score_detectorId%s=%d]\"}%n", detector.x, detector.z, i == detectors.size() - 1 ? "" : "_min", (i+1) % detectors.size());
- System.out.printf("setblock %d 33 %d chain_command_block facing=up replace {auto:1b,Command:\"testforblock ~ ~-1 ~ command_block * {SuccessCount:0}\"}%n", detector.x, detector.z);
- System.out.printf("setblock %d 34 %d chain_command_block facing=up,conditional=true replace {auto:1b,Command:\"testfor @e[tag=detectorsActive]\"}%n", detector.x, detector.z);
- System.out.printf("setblock %d 35 %d chain_command_block facing=up,conditional=true replace {auto:1b,Command:\"scoreboard players set lut messConstants %d\"}%n", detector.x, detector.z, upperBound);
- System.out.printf("setblock %d 36 %d chain_command_block facing=up,conditional=true replace {auto:1b,Command:\"scoreboard players set lutLast messConstants %d\"}%n", detector.x, detector.z, getUpperSeedBound((i==0 ? detectors.size()-1 : i-1)));
- System.out.printf("setblock %d 37 %d chain_command_block facing=up,conditional=true replace {auto:1b,Command:\"summon armor_stand ~ ~ ~ {Tags:[\\\"detectorLock\\\"]}\"}%n", detector.x, detector.z);
- System.out.printf("setblock %d 38 %d chain_command_block facing=up,conditional=true replace {auto:1b,Command:\"scoreboard players set @e[tag=detectorLock] detectorId %d\"}%n", detector.x, detector.z, i);
- }
- detectors.clear();
- initialHeight = 17;
- launchTntCount = 6;
- generateDetectorCircle();
- System.out.println("# NO LAG PLZ!!!");
- for (Detector detector : detectors) {
- System.out.printf("fill 0 28 %d %d 28 %d air%n", detector.z + (int) Math.signum(detector.z), detector.x, (int) Math.signum(detector.z));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement