Imthedude025

Set Custom Minecraft Render (Batch)

Jan 3rd, 2018
126
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ::Made by RU$$ [http://russdev.mooo.com/]
  2. @Echo off
  3. Title Set Minecraft Render
  4.  
  5. tasklist | find "javaw"
  6.  
  7. IF [%errorlevel%] EQU [0] (GOTO :Found) ELSE (GOTO :MENU)
  8.  
  9. :Found
  10. cls
  11. echo ERROR: Minecraft is open! Please close and try agian.
  12. echo.
  13. pause.
  14. exit
  15.  
  16. :MENU
  17. cls
  18. echo -------------------------------------------------------------------
  19. echo - WARNING: -
  20. echo -------------------------------------------------------------------
  21. echo - This tool is designed to be used with proper reponsibility. -
  22. echo - Misuse may lead to a frozen game, corrupted game settings, -
  23. echo - and possibly high system temperatures. -
  24. echo -------------------------------------------------------------------
  25. echo.
  26. echo INSTRUCTIONS:
  27. echo 1. Make sure game is CLOSED
  28. echo 2. Type a custom render! (numeric numbers only)
  29. echo.
  30. echo OPTIONS:
  31. echo 1. Type "delete" to delete config.
  32. echo 2. Type "exit" to quit.
  33. echo -------------------------------------------------------------------------------
  34. echo.
  35. set /p render=Enter a custom render:
  36.  
  37. IF /I '%render%'=='' GOTO :MENU
  38. IF /I '%render%'=='delete' GOTO :DEL
  39. IF /I '%render%'=='exit' (exit) ELSE (GOTO :SET)
  40.  
  41. GOTO :MENU
  42.  
  43. :DEL
  44. cls
  45. DEL "C:\Users\%username%\AppData\Roaming\.minecraft\options.txt"
  46. echo Config has been deleted!
  47. echo.
  48. pause
  49. exit
  50.  
  51. :SET
  52. cls
  53. cd C:\Users\%username%\AppData\Roaming\.minecraft
  54. powershell -Command "(gc options.txt) -replace '(renderDistance:)\d+', 'renderDistance:%render%' | sc options.txt"
  55. powershell -Command "$Host.UI.RawUI.WindowTitle = """Set Minecraft Render"""
  56.  
  57. goto :FINISHED
  58.  
  59. :FINISHED
  60. cls
  61. echo Render has been set: %render%
  62. echo.
  63. pause
  64. exit
RAW Paste Data