Skip to content

Instantly share code, notes, and snippets.

View hube12's full-sized avatar
💭
Currently working and handling side projects, contact me on Discord Neil#4879

Neil hube12

💭
Currently working and handling side projects, contact me on Discord Neil#4879
View GitHub Profile
@hube12
hube12 / unification.rs
Created June 29, 2022 21:13
Unification technics in Rust
#![allow(dead_code)]
use std::any::Any;
#[derive(Default, Debug)]
pub struct TestA {
pub field_a: usize,
pub field_b: u8,
}
package lifting;
import com.seedfinding.mccore.rand.seed.StructureSeed;
import com.seedfinding.mccore.util.data.Pair;
import com.seedfinding.mccore.util.data.SeedIterator;
import com.seedfinding.mccore.util.data.Triplet;
import com.seedfinding.mccore.util.pos.BPos;
import com.seedfinding.mcseed.rand.JRand;
import java.util.ArrayList;
@hube12
hube12 / Main.java
Created February 26, 2022 17:19
Simple Dungeon reversal with latticg (here 1.12 pos order)
package com.seedfinding.neil;
import com.seedfinding.latticg.reversal.DynamicProgram;
import com.seedfinding.latticg.reversal.calltype.java.JavaCalls;
import com.seedfinding.latticg.util.LCG;
import com.seedfinding.mcseed.rand.JRand;
import java.util.List;
// repositories {
@hube12
hube12 / QuadHutLifting.java
Last active December 29, 2021 20:58
Crack all the quad hut base seed
package lifting;
import com.seedfinding.mccore.rand.ChunkRand;
import com.seedfinding.mccore.util.pos.CPos;
import com.seedfinding.mccore.version.MCVersion;
import com.seedfinding.mcfeature.structure.SwampHut;
import com.seedfinding.mcfeature.structure.UniformStructure;
import java.util.ArrayList;

Seed Cracking API

Goals

  • Provide an unified api that can accept all data point to crack or reduce to a set of seeds
  • Provide metrics and insights about the seed cracking process at each steps even during gathering
  • Be easy to use in any configuration and accross versions

Data points

@hube12
hube12 / Data.java
Last active October 11, 2021 21:53
2b2t nether seed 146008555100680
package com.seedfinding.neil;
import kaptainwutax.biomeutils.source.BiomeSource;
import kaptainwutax.featureutils.structure.Fortress;
import kaptainwutax.mcutils.block.Block;
import kaptainwutax.mcutils.block.Blocks;
import kaptainwutax.mcutils.rand.ChunkRand;
import kaptainwutax.mcutils.state.Dimension;
import kaptainwutax.mcutils.util.pos.BPos;
import kaptainwutax.mcutils.util.pos.CPos;
package neil;
import kaptainwutax.featureutils.structure.*;
import kaptainwutax.mcutils.rand.ChunkRand;
import kaptainwutax.mcutils.util.pos.CPos;
import kaptainwutax.mcutils.util.pos.RPos;
import kaptainwutax.mcutils.version.MCVersion;
import java.util.ArrayList;
package neil;
import kaptainwutax.featureutils.structure.DesertPyramid;
import kaptainwutax.featureutils.structure.RegionStructure;
import kaptainwutax.featureutils.structure.device.StructureDevice;
import kaptainwutax.featureutils.structure.device.node.UniformNode;
import kaptainwutax.mcutils.rand.ChunkRand;
import kaptainwutax.mcutils.util.pos.CPos;
import kaptainwutax.mcutils.util.pos.RPos;
import kaptainwutax.mcutils.version.MCVersion;
@hube12
hube12 / LootCrackerLatticg.java
Created July 29, 2021 19:02
BuriedTreasure 16 tnt
public static void main(String[] args) {
MCVersion version = MCVersion.v1_16_5;
// DynamicProgram dynamicProgram=DynamicProgram.create(LCG.JAVA);
// // Nothing on First Roll (heart of sea)
// // Second roll should be 8 on nextInt(8-5+1=4)+5
// dynamicProgram.add(JavaCalls.nextInt(4).equalTo(3));
// for (int i = 0; i < 8; i++) {
// dynamicProgram.add(JavaCalls.nextInt(35).betweenII(30,34));
// dynamicProgram.add(JavaCalls.nextInt(2).equalTo(1));
// }
@hube12
hube12 / Dean.java
Last active July 26, 2021 07:53
FastRuinedPortal
package com.seedfinding.neil;
import kaptainwutax.biomeutils.source.OverworldBiomeSource;
import kaptainwutax.featureutils.loot.ChestContent;
import kaptainwutax.featureutils.loot.item.Items;
import kaptainwutax.featureutils.structure.RuinedPortal;
import kaptainwutax.featureutils.structure.generator.structure.RuinedPortalGenerator;
import kaptainwutax.mcutils.rand.ChunkRand;
import kaptainwutax.mcutils.rand.seed.StructureSeed;
import kaptainwutax.mcutils.state.Dimension;