Advertisement
Earthcomputer

Untitled

Mar 29th, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.83 KB | None | 0 0
  1.         initialHeight = 26;
  2.         launchTntCount = 7;
  3.         generateDetectorCircle();
  4.  
  5.         for (int i = 0; i < detectors.size(); i++) {
  6.             Detector detector = detectors.get(i);
  7.             System.out.println("# Detector " + i);
  8.             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));
  9.             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);
  10.             System.out.printf("setblock %d 29 %d tripwire%n", detector.x, detector.z);
  11.             System.out.printf("setblock %d 30 %d observer facing=down%n", detector.x, detector.z);
  12.             System.out.printf("setblock %d 31 %d sandstone%n", detector.x, detector.z);
  13.             long upperBound = getUpperSeedBound(i);
  14.             System.out.printf("fill %d 32 %d %d 38 %d stone%n", detector.x, detector.z, detector.x, detector.z);
  15.             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());
  16.             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);
  17.             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);
  18.             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);
  19.             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)));
  20.             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);
  21.             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);
  22.         }
  23.  
  24.         detectors.clear();
  25.         initialHeight = 17;
  26.         launchTntCount = 6;
  27.         generateDetectorCircle();
  28.  
  29.         System.out.println("# NO LAG PLZ!!!");
  30.         for (Detector detector : detectors) {
  31.             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));
  32.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement