This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def java_string_hashcode(s): | |
# Convert string to seed | |
# https://gist.github.com/hanleybrand/5224673 | |
h = 0 | |
for c in s: | |
h = (31 * h + ord(c)) & 0xFFFFFFFF | |
return ((h + 0x80000000) & 0xFFFFFFFF) - 0x80000000 | |
def all_casings(input_string): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Made by Specnr | |
#NoEnv | |
SavesDirectory = C:\Users\Spencer\AppData\Roaming\.minecraft\saves\ ; Replace this with your minecraft saves | |
SetWorkingDir %SavesDirectory% | |
global delay := 36 ; Frame delay (1 frame = 16.66, round up to be safe) | |
SetKeyDelay, 0 | |
IfNotExist, %SavesDirectory% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Multi instance AHK resetting script | |
; Author Specnr | |
; Follow setup video (mainly for OBS setup) https://youtu.be/0gaG-P2XxrE | |
; Run the setup script https://gist.github.com/Specnr/b13dae781f1b70bb6592027205870c7e | |
; Follow extra instructions https://gist.github.com/Specnr/c851a92a258dd1fdbe3eee588f3f14d8#gistcomment-3810003 | |
#NoEnv | |
#SingleInstance Force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance, Force | |
SendMode Input | |
SetWorkingDir, %A_ScriptDir% | |
global oldWorldsFolder := "C:\MultiInstanceMC\oldWorlds\" | |
global SavesDirectory = "C:\MultiInstanceMC\MultiMC\instances\1.16INST1\.minecraft\saves\" | |
MoveWorlds() | |
{ | |
dir := SavesDirectories . "saves\" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
#SingleInstance Force | |
SetKeyDelay, 1 | |
SetWinDelay, 1 | |
SetTitleMatchMode, 2 | |
; Steps: | |
; Update saves path (KEEP the backslash at the end of saves) | |
; Update load hotbar hotkey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Biome-exclusive single-instance autoresetting AHK script | |
; Author: Specnr | |
; Depends on AutoReset Mod AND Chunk Mod v1.0.2+ AND (probably idk) FastReset | |
#NoEnv | |
#SingleInstance Force | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% | |
SetTitleMatchMode, 2 | |
; default global variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
#SingleInstance Force | |
; Make sure all instances are unfrozen, and in order on the front of the taskbar | |
; Also have OBS open :) | |
SetKeyDelay, 1 | |
SetWinDelay, 1 | |
SetTitleMatchMode, 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance, Force | |
SendMode Input | |
SetWorkingDir, %A_ScriptDir% | |
; Will move all New World/Speedrun # worlds from all open Minecrafts to oldWorldsFolder | |
global oldWorldsFolder := "C:\MultiInstanceMC\oldWorlds\" ; Old Worlds folder, make it whatever you want | |
IfNotExist, %oldWorldsFolder% | |
FileCreateDir %oldWorldsFolder% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import shutil | |
import glob | |
import os | |
# Edit this | |
INST_FOLDER = "C:/MultiInstanceMC/MultiMC/instances" | |
with open("bop.log", "w") as log: | |
files = glob.glob(f'{INST_FOLDER}/*/.minecraft/saves/*') | |
for f in files: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
mmc = "C:\MultiInstanceMC\MultiMC" # Change this to match your mmc location | |
instance_format = "1.16INST" # Change this to match your instance naming convention (mine is 1.16INST1, 1.16INST2, etc) | |
instance_count = 9 # Change to match instance count | |
for i in range(1, instance_count+1): | |
print(f"Starting instance {instance_format}{i}") | |
os.system(f"{mmc}\MultiMC.exe -l {instance_format}{i}") |
OlderNewer