Skip to content

Instantly share code, notes, and snippets.

View EDDxample's full-sized avatar

EDDxample EDDxample

View GitHub Profile
@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 / 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 / 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 / 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 / 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();