Skip to content

Instantly share code, notes, and snippets.

View EDDxample's full-sized avatar

EDDxample EDDxample

View GitHub Profile
@EDDxample
EDDxample / TripleChestFinder.java
Last active January 4, 2019 00:17
Simulates Minecraft's dungeon generation to find dungeons that are close enough to get multiple chests
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Random;
import java.util.concurrent.atomic.AtomicLong;
public final class TripleChestFinder
{
static long seed;
static boolean stop, shouldStop;
static Random rng = new Random();
@EDDxample
EDDxample / DungeonTool.java
Created January 4, 2019 00:19
Minecraft mod that adds tools for dungeon generation
package edd;
import java.util.ArrayList;
import java.util.Random;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.init.Blocks;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
@EDDxample
EDDxample / Fractal.pde
Created February 17, 2019 01:35
3D Fractal based on "The Moon is a Harsh Mistress", each cell (Group of 3 people), can talk with its leader (upper level), other 2 cells at the same level and each member leads its own Subcell
void setup() {
size(400, 400, P3D);
}
float deg = 3;
void draw() {
background(200);
@EDDxample
EDDxample / RNG_Village_Finder.java
Created February 24, 2019 18:13
Simulates Minecraft's random calls to find the regions for Village RNG manipulation
import java.util.Random;
public class RNG_Village_Finder {
static boolean stop;
static int radius = 23437;
static long worldSeed = 544L;
static Random randy = new Random();
public static void main(String[] args) { seedLoop(); }
@EDDxample
EDDxample / Lattice_Renderer.pde
Created June 6, 2019 12:39
Lattice Renderer: 3b1b-like lattice transformation
int FRAME = 0;
int ROWS = 50;
float SCALE = 50;
void setup() {
size(854, 480);
}
void draw() {
@EDDxample
EDDxample / Minimap.java
Created July 27, 2019 00:00
that chunk thing
package eddxample;
import net.minecraft.world.chunk.ChunkStatus;
import java.awt.*;
import java.awt.event.*;
import java.util.HashMap;
import javax.swing.*;
@EDDxample
EDDxample / FlatlandsMixin.java
Created September 7, 2019 20:58
Changes Minecraft's flatlands generator to make checkerboard patterns using the block layers
package eddxample.chunkminimap.mixin;
import net.minecraft.block.BlockState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.ChunkRegion;
import net.minecraft.world.Heightmap;
import net.minecraft.world.IWorld;
import net.minecraft.world.biome.source.BiomeSource;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.gen.chunk.ChunkGenerator;
@EDDxample
EDDxample / Lattice Basics.ipynb
Last active May 12, 2024 17:52
Lattice Basics for RNG Seed finding
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@EDDxample
EDDxample / b0lu.py
Created March 22, 2020 20:29
hiragana/katakana romanizator
kanas = {
'あ':'a','い':'i','う':'u','え':'e','お':'o','か':'ka','き':'ki','く':'ku','け':'ke','こ':'ko','さ':'sa','し':'shi','す':'su','せ':'se','そ':'so','た':'ta','ち':'chi','つ':'tsu','て':'te','と':'to','な':'na','に':'ni','ぬ':'nu','ね':'ne','の':'no','は':'ha','ひ':'hi','ふ':'fu','へ':'he','ほ':'ho','ま':'ma','み':'mi','む':'mu','め':'me','も':'mo','や':'ya','ゆ':'yu','よ':'yo','ら':'ra','り':'ri','る':'ru','れ':'re','ろ':'ro','わ':'wa','を':'wo','ん':'n',
'ア':'a','イ':'i','ウ':'u','エ':'e','オ':'o','カ':'ka','キ':'ki','ク':'ku','ケ':'ke','コ':'ko','サ':'sa','シ':'shi','ス':'su','セ':'se','ソ':'so','タ':'ta','チ':'chi','ツ':'tsu','テ':'te','ト':'to','ナ':'na','ニ':'ni','ヌ':'nu','ネ':'ne','ノ':'no','ハ':'ha','ヒ':'hi','フ':'fu','ヘ':'he','ホ':'ho','マ':'ma','ミ':'mi','ム':'mu','メ':'me','モ':'mo','ヤ':'ya','ユ':'yu','ヨ':'yo','ラ':'ra','リ':'ri','ル':'ru','レ':'re','ロ':'ro','ワ':'wa','ヲ':'wo','ン':'n',
'が':'ga','ぎ':'gi','ぐ':'gu','げ':'ge','ご':'go','ざ':'za','じ':'ji','ず':'zu','ぜ':'ze','ぞ':'zo','だ':'da','ぢ':'dji','づ':'zu','で':'de','ど':'do','ば':'ba','び':'bi','ぶ':'bu','べ':'be','ぼ':
@EDDxample
EDDxample / twitterfamily.py
Last active April 9, 2021 00:17
Renders graph based on multiple twitterfamily outputs
from collections import defaultdict
import networkx as nx, matplotlib.pyplot as plt
class Node:
def __init__(self):
self.partners = defaultdict(int)
self.children = defaultdict(int)
def __repr__(self):
return f'\npartners: {dict(self.partners)}\nchildren: {dict(self.children)}\n'