1.13.4 • Published 4 months ago
mojang-lib v1.13.4
mojang-lib

A modern wrapper for interacting with the Mojang API. This library is a rewritten version of minecraft-lib in TypeScript. The list of changes made are available here.
Install
Bun - bun add mojang-lib
\
PNPM - pnpm add mojang-lib
Usage
ESM
import { players, servers } from "mojang-lib"
const server = await servers.get('play.earthmc.net')
console.log(server)
const player = await players.get('Owen3H')
console.log(player)
CommonJS
const MCAPI = require("mojang-lib")
async function runTest() {
const server = await MCAPI.servers.get('play.earthmc.net')
console.log(server)
const player = await MCAPI.players.get('Owen3H')
console.log(player)
}
runTest()
1.13.4
4 months ago
1.13.3
4 months ago
1.13.2
1 year ago
1.13.1
2 years ago
1.13.0
2 years ago
1.12.1
2 years ago
1.12.0
2 years ago
1.11.1
2 years ago
1.11.0
2 years ago
1.10.1
2 years ago
1.10.0
2 years ago
1.9.0
2 years ago
1.8.1
2 years ago
1.8.0
2 years ago
1.7.0
2 years ago
1.6.0
2 years ago
1.5.1
2 years ago
1.5.0
2 years ago
1.4.0
2 years ago
1.3.0
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.0
2 years ago
1.0.0
2 years ago
0.1.0
2 years ago