Skip to content

Instantly share code, notes, and snippets.

@spiwn
spiwn / spawners.py
Last active June 10, 2020 18:14
Script to find all spawners and groups them as double, triple, quadruple etc
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'
@spiwn
spiwn / diamonds.py
Last active June 4, 2020 22:28 — forked from Sevadus/diamonds.py
Script to simulate mining diamonds in a Minecraft world and determine efficiency of different mining patterns
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'}
@spiwn
spiwn / about.md
Last active March 15, 2018 16:38 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer

Programming Achievements: How to Level Up as a Developer

This gist is a fork a gist from here.

@spiwn
spiwn / README.txt
Created February 21, 2012 13:50
A simple python utility to change a process' priority
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