A TypeScript tool that analyzes Minecraft world seeds to predict diamond and gold locations and optimize your mining strategy.
A complete Flutter application is included in the flutter_app/ directory with:
- π± Mobile-Friendly Interface: Native iOS and Android support
- π― Interactive Search: Easy input for coordinates and world seeds
- π Dual Ore Support: Switch between diamond and gold finding
- π Top 10 Results: Shows the most probable locations
- π Copy Coordinates: Tap to copy coordinates to clipboard
- π Dark Mode: Automatic light/dark theme support
# Navigate to flutter app directory
cd flutter_app
# Get dependencies
flutter pub get
# Run on connected device or emulator
flutter run
# Run on specific platform
flutter run -d chrome # Web browser
flutter run -d android # Android device/emulator
flutter run -d ios # iOS device/simulator
# Build for release
flutter build apk # Android APK
flutter build appbundle # Android App Bundle (for Play Store)
flutter build ios # iOS (requires Xcode)
flutter build web # Web deploymentAndroid:
- Android Studio with Android SDK
- Android device or emulator
- Minimum SDK: API 21 (Android 5.0)
iOS:
- macOS with Xcode installed
- iOS device or iOS Simulator
- Apple Developer account (for device deployment)
Web:
- Modern web browser (Chrome, Firefox, Safari, Edge)
- Enter World Seed: Your Minecraft world seed
- Set Search Center: Your current X, Y, Z coordinates
- Choose Search Radius: How far to search (max 1000 blocks)
- Select Ore Type: Diamond or Gold
- Optional: Include Nether Gold for gold searches
- Tap Search: Get top 10 most probable locations
- Copy Coordinates: Tap copy icon to use in-game
- π Seed Analysis: Uses Minecraft's world generation patterns to predict ore spawns
- οΏ½ LDiamond Finder: Locate high-probability diamond coordinates
- π Gold Finder: Find gold ore locations with biome-specific analysis
- π Location Prediction: Precise coordinate predictions for both ores
- βοΈ Mining Optimization: Strategic mining recommendations for each ore type
- π― Chunk Information: Shows chunk coordinates for easier navigation
- π Probability Scoring: Ranks locations by ore spawn likelihood
- ποΈ Biome Detection: Special handling for Badlands (Mesa) gold bonuses
# Clone or download the project
git clone <your-repo-url>
cd minecraft-diamond-finder
# Install dependencies
npm install# Find diamonds using a numeric seed
npx ts-node minecraft-diamond-finder.ts 12345
# Find diamonds using a string seed
npx ts-node minecraft-diamond-finder.ts "MyAwesomeSeed"
# Find gold using a seed
npx ts-node minecraft-gold-finder.ts 12345
# Find gold including Nether locations
npx ts-node minecraft-gold-finder.ts "GoldRush" 0 0 500 --nether# Specify center coordinates and search radius
npx ts-node minecraft-diamond-finder.ts "DiamondHunter" 100 -200 500
# Parameters: <seed> [centerX] [centerZ] [radius]
# - seed: Your world seed (string or number)
# - centerX: X coordinate to center search around (default: 0)
# - centerZ: Z coordinate to center search around (default: 0)
# - radius: Search radius in blocks (default: 300)# Find diamonds
npm run find-diamonds "12345" 0 0 400
# Find gold
npm run find-gold "GoldMiner" 100 -200 300
# Find all ores (diamonds + gold)
npm run find-all "MyWorld" 0 0 500# Run both diamond and gold analysis
./find-all-ores.sh "MyWorld"
# With custom coordinates and radius
./find-all-ores.sh "MyWorld" 100 -200 500
# Include Nether gold ore
./find-all-ores.sh "GoldRush" 0 0 400 --nether
# Show help
./find-all-ores.sh --helpπ Minecraft Diamond Finder
Seed: DiamondHunter
Center: (0, 0)
Search radius: 300 blocks
π Top 10 Diamond Locations:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1. Coordinates: (-48, -59, 112)
Chunk: (-3, 7)
Probability: 87.3%
2. Coordinates: (64, -55, -96)
Chunk: (4, -6)
Probability: 82.1%
π Minecraft Gold Finder
Seed: GoldRush
Center: (0, 0)
Search radius: 300 blocks
π
Top 10 Gold Locations:
BADLANDS (EXCELLENT!):
1. Coordinates: (128, 64, -96)
Chunk: (8, -6)
Probability: 91.2%
OVERWORLD:
2. Coordinates: (-80, -24, 144)
Chunk: (-5, 9)
Probability: 73.8%
βοΈ Gold Mining Tips:
β’ Biome: Badlands/Mesa (EXCELLENT for gold!)
β’ Surface mining: Y 32 to 80 (very high gold rates)
β’ TIP: Badlands have 6x more gold than regular biomes!
The tool simulates Minecraft's ore generation algorithm by:
- Seed Processing: Converts string seeds to numeric values
- Chunk Analysis: Uses Linear Congruential Generator for predictable randomness
- Layer Optimization: Focuses on Y levels -64 to 16 (diamond spawn range)
- Probability Calculation: Combines multiple factors:
- Optimal Y level proximity (peak at Y -59)
- Chunk-based randomness
- Coordinate-based variation
- Simulated ore vein patterns
- Y Range: -64 to 16 (below Y 16)
- Peak Layer: Y -59 (highest concentration)
- Good Layers: Y -64 to -48
- Decent Layers: Y -47 to -32
- Lower Chance: Y -31 to 16
- Overworld Y Range: -64 to 32
- Peak Layers: Y -32 to -16
- Badlands Bonus: Y 32 to 80 (6x more gold!)
- Nether Gold: Y 10 to 117 (Nether Gold Ore)
- Start at Y -59 for maximum diamond exposure
- Branch mining every 2-3 blocks horizontally
- Strip mining at multiple Y levels between -64 and -54
- Use coordinates from the tool to plan your mining routes
- Bring plenty of torches and food for long mining sessions
You can also use these as modules in your own projects:
import { MinecraftDiamondFinder } from './minecraft-diamond-finder';
import { MinecraftGoldFinder } from './minecraft-gold-finder';
// Diamond finder
const diamondFinder = new MinecraftDiamondFinder({
seed: "MyWorldSeed",
version: "1.20"
});
const diamondSpots = diamondFinder.findBestMiningSpots(0, 0, 500, 10);
// Gold finder
const goldFinder = new MinecraftGoldFinder({
seed: "MyWorldSeed",
version: "1.20"
});
const goldSpots = goldFinder.findBestMiningSpots(0, 0, 500, 10, true); // Include nether
const goldTips = goldFinder.getMiningRecommendations(100, -200);- Minecraft Versions: Designed for 1.18+ (cave update generation)
- Node.js: Requires Node.js 16+
- TypeScript: Built with TypeScript 5.0+
- This is a prediction tool based on generation patterns, not a guarantee
- Actual diamond spawns may vary due to:
- Cave generation interference
- Lava lake placement
- Other ore generation conflicts
- Results are most accurate for overworld diamond generation
- Does not account for structure generation (villages, strongholds, etc.)
Feel free to submit issues and enhancement requests!
MIT License - feel free to use and modify as needed.
Happy Mining! βοΈπ