Skip to content

Instantly share code, notes, and snippets.

View AnachronisticTech's full-sized avatar

Daniel Marriner AnachronisticTech

View GitHub Profile
@AnachronisticTech
AnachronisticTech / functionCreator.py
Created August 20, 2021 15:48
Minecraft build-jam supplies generator function creator
functionFilePath = r"<path to file>.mcfunction"
relative = ["", "1", "2", "3"]
materials = [
["oak_log", "dark_oak_log", "birch_log", "spruce_log"],
["acacia_log", "jungle_log", "cobblestone", "stone"],
["deepslate", "andesite", "granite", "blackstone"],
["dirt", "grass_block", "scaffolding", "bricks"],
]
command = ""
@AnachronisticTech
AnachronisticTech / world_trimmer.py
Created August 12, 2021 20:14
Minecraft (Java Edition) single-player world trimming utility for Windows
import glob
import re
import os
basePath = f"{os.getenv("APPDATA")}\\.minecraft\\saves"
worldFolderName = "WORLD_NAME" # REPLACE ME
settings = [
# (folderName, (x_lower, x_upper), (z_lower, z_upper))
("", (-8, 3), (-4, 5)), # overworld
("DIM-1\\", (-2, 1), (-2, 1)), # the nether
@AnachronisticTech
AnachronisticTech / base.css
Created November 11, 2019 21:47
A responsive CSS template with media queries for devices of different widths
/* GLOBAL STYLES */
/* Set default transition time to 0s */
* {
transition:0s;
}
/* Hide element click outline */
:focus {
outline:none;