a small Python script that uses amulet-core to search for specific blocks in a Minecraft world
this was created out of my need to find the exceptionally rare Osmium Ore in the Not Too Complicated 2 modpack
call it cheating if you like, but this is my 3rd playthrough of the pack and quite frankly i have much better things to do than fuck around trying to find a single goddamn vein of this shit.
if you want to use it, the general setup goes like this:
These are two potential scripts for computing (sane) diffs of permission overwrite changes on Discord channels with Discord.js.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(() => { | |
distSq = ast => { | |
let dx = playerX - ast.x; | |
let dy = playerY - ast.y; | |
return dx * dx + dy * dy; | |
}; | |
justPressed.Space = !justPressed.Space; | |
let closest = asteroids.sort((a, b) => distSq(a) - distSq(b))[0]; | |
dist = closest ? distSq(closest) : 10000; | |
keys.KeyW = !!closest && dist > 7500; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const level = require('level'); | |
const db = level('./testDB', { valueEncoding: 'json' }); | |
async function main() { | |
await db.put('key-1', 'some value'); | |
await db.put('key-2', ''); | |
await db.put('key-3', -1); | |
await db.put('key-4', 0); | |
await db.put('key-5', 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.rayzr522.cubehomes; | |
import java.io.File; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map.Entry; | |
import java.util.UUID; |