npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@goobisbackk/goobercraft

v0.1.1

Published

Mineflayer'dan bağımsız TypeScript Minecraft Java Edition bot kütüphanesi. minecraft-protocol ve prismarine ekosistemi üzerine kuruludur.

Readme

GooberCraft

Sıfırdan, Mineflayer kullanılmadan yazılmış TypeScript Minecraft: Java Edition bot kütüphanesi. Yalnızca şu paketler üzerine kuruludur:

  • minecraft-protocol
  • prismarine-chunk
  • prismarine-block
  • prismarine-item
  • prismarine-registry
  • prismarine-nbt
  • vec3

Kurulum

npm install
npm run build

Hızlı başlangıç

import { createBot } from "goobercraft";

const bot = createBot({
  host: "localhost",
  port: 25565,
  username: "Goober",
  auth: "offline",
});

bot.on("spawn", () => {
  bot.chat("Merhaba!");
});

createBot() çağrıldığı anda handshake, login, configuration, compression/encryption (minecraft-protocol tarafından), keep-alive, teleport confirm, spawn tespiti, entity/chunk/inventory/health/food/xp senkronizasyonu otomatik olarak başlar. Hiçbir ham paket yazmanız gerekmez.

Mimari

src/
├── index.ts            Public API export'ları
├── createBot.ts         Fabrika fonksiyonu
├── Bot.ts                Kullanıcıya açık kolay API
├── core/                 EventBus, ProtocolManager, PluginManager, BotCore
├── managers/              Her biri tek bir sorumluluğa sahip 18 manager
├── entity/                Entity / PlayerEntity modelleri
├── world/                 World cache + raycast
├── inventory/             Window / Item modelleri
├── pathfinder/            Sınırlı-alan A* pathfinder
└── utils/                 types, Logger, Vec3Utils

Her manager tek bir işten sorumludur (SOLID / Single Responsibility): KeepAliveManager sadece keep-alive'a cevap verir, TeleportManager sadece pozisyon senkronizasyonunu ve teleport onayını yönetir, vb. Tüm manager'lar birbirleriyle doğrudan değil, EventBus üzerinden haberleşir; bu da bağımlılıkları gevşek tutar ve test edilebilirliği artırır.

Özellik durumu ve bilinen sınırlar

Bu, dürüstçe belirtilmesi gereken önemli bir nokta: Mineflayer, yıllar içinde onlarca katkıcı tarafından geliştirilmiş, protokol versiyonlarına göre binlerce satır edge-case barındıran bir kütüphanedir. GooberCraft bunun tamamını tek seferde, production kalitesinde yeniden üretmeyi hedeflemez — bunun yerine gerçekten çalışan bir çekirdek sunar:

Tam otomatik ve production'a yakın:

  • Handshake / Login / Configuration / Compression / Encryption (minecraft-protocol)
  • KeepAlive, Teleport Confirm, Respawn, Spawn event
  • Chat parse/send (legacy + system_chat + imzalı player_chat)
  • Entity tracking (spawn/destroy/move/velocity/metadata), Player list (tab)
  • Health / Food / Experience senkronizasyonu
  • Envanter senkronizasyonu (window_items/set_slot), equip/toss/craft/openChest/openFurnace
  • Plugin sistemi (bot.loadPlugin)

Gerçek ve çalışan, ancak basitleştirilmiş:

  • ChunkManager: prismarine-chunk'ın versiyona özel loader'ını kullanır; ancak chunk paket formatı Minecraft sürümleri arasında (özellikle 1.18+ section/biome paletleri) belirgin şekilde değişir. Bağlandığınız sürümde parse hatası alırsanız prismarine-chunk sürümünü/versiyon string'ini güncellemeniz gerekebilir.
  • PhysicsManager: Yerçekimi, yürüme, koşma ve zıplamayı gerçekten simüle eder ve pozisyon paketlerini gönderir; ancak Minecraft'ın tam AABB çarpışma motorunu (merdiven, su, örümcek ağı, buz sürtünmesi, slime blok vb.) içermez.
  • SimplePathfinder: Sınırlı bir hacimde çalışan gerçek bir A* algoritmasıdır; Mineflayer'ın mineflayer-pathfinder'ı kadar gelişmiş parkur/kapı/su mantığı içermez.
  • Raycast: Amanatides-Woo voxel traversal ile gerçek blok raycasting yapar; entity raycasting içermez.

Bu sınırların hepsi kod içinde ilgili dosyalarda yorum olarak da belirtilmiştir.

API özeti

bot.chat(message)
bot.look(yaw, pitch)
bot.lookAt(vec3)
bot.swingArm()
bot.attack(entityOrId)
bot.useItem()
bot.placeBlock(referencePos, faceVec3)
bot.dig(position)
bot.move("forward" | "back" | "left" | "right" | "jump", state)
bot.jump()
bot.sneak(state)
bot.sprint(state)
bot.setControlState(control, state)
bot.stop()

bot.entities            // Entity[]
bot.players              // PlayerData[]
bot.nearestEntity(predicate?)
bot.nearestPlayer()

bot.getBlock(position)
bot.getChunk(chunkX, chunkZ)
bot.getBiome(position)
bot.raycast(maxDistance?)

bot.equip(itemName, "hand" | "off-hand")
bot.unequip()
bot.toss(itemName, amount?)
bot.craft(recipeId, craftAll?)
bot.openChest()
bot.openFurnace()

bot.loadPlugin(plugin)

Lisans

MIT