1.0.0 • Published 8 months ago
minecraft-seed-input v1.0.0
minecraft-seed-input
This function does what minecraft will do if you input a string in the seed input when creating a world: convert it to a number using an algorithm.
Usage
const seed = require('minecraft-seed-input')
console.log(seed()) // "[random]"
console.log(seed(1)) // 1
console.log(seed("somecoolseed")) // 1706390062
console.log(seed("creashaks organzine")) // 0
1.0.0
8 months ago