ferreusveritas

installChamber

Sep 11th, 2020 (edited)
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. --setup the woorld
  2. commands.gamerule("commandBlockOutput", false);
  3. commands.gamerule("logAdminCommands", false);
  4. commands.gamerule("doDaylightCycle", false);
  5. commands.gamerule("doWeatherCycle", false);
  6. commands.gamerule("randomTickSpeed", 1000);
  7. commands.time("set", 6000);
  8.  
  9. local files = {};
  10. files["RmTMXhH8"]="blocks";
  11. files["Uf7LTBRR"]="makeChamber";
  12. files["kB4LEBvi"]="runChamber";
  13. files["Ct6MXCZ9"]="build";
  14.  
  15. for code, file in pairs(files) do
  16.   shell.run("pastebin", "get", code, file);
  17. end
  18.  
  19. --Create Startup File
  20. local s = fs.open("startup", "w");
  21. s.write("shell.run(\"runChamber\");");
  22. s.close();
  23.  
  24. --Create Config File
  25. local c = fs.open("config", "w");
  26. c.write("height=20; --The height of the chamber structure\n");
  27. c.write("codesPerRad=20; --Codes to generate per radius. 20 is recommended\n");
  28. c.close();
  29.  
  30. --Create Growing Chamber
  31. shell.run("makeChamber");
Add Comment
Please, Sign In to add comment