This gist is a fork a gist from here.
This file contains hidden or 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
A very simple script to change a process' priority in native python 3.# | |
Works on Windows only (for now) | |
Todo: | |
Make it less hacky, more portable (should extract values from the api and use them instead of the hardcoded ones) | |
Add documentation |
This file contains hidden or 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 anvil | |
import datetime | |
from collections import defaultdict | |
# Setting this to 1 turns off multi threading functionality | |
threadCount = 4 | |
diamond = "minecraft:diamond_ore" | |
minable = {'coal_ore', 'iron_ore', 'redstone_ore', 'gold_ore', 'lapis_ore', 'emerald_ore'} |
This file contains hidden or 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 anvil | |
import datetime | |
import itertools | |
import os.path as path | |
# Setting this to 1 turns off multi threading functionality | |
threadCount = 4 | |
regionFilesDirectory = 'server/world_old/region' |