Skip to main content

Minecraft Adapter

Idiomark adapter for extracting personality data from Minecraft server logs and player interactions.

Features​

  • 🎮 Multiple log format support - Vanilla, Bukkit, Spigot, Paper, Forge
  • 💬 Chat analysis - Extract player messages and communication patterns
  • 🏆 Achievement tracking - Parse achievements and advancements
  • 📊 Player statistics - Analyze playstyle, activities, and preferences
  • 🌍 World tracking - Detect which worlds and dimensions players prefer
  • 🎯 Combat analysis - Understand PvP vs PvE tendencies

Installation​

npm install @idiomark/adapter-minecraft

Usage​

import { createMinecraftAdapter, fetchMinecraftLogs } from '@idiomark/adapter-minecraft'

// Basic usage
const adapter = createMinecraftAdapter('./logs/latest.log', {
username: 'PlayerName',
serverType: 'vanilla'
})

// Fetch logs
const output = await adapter.getStructuredOutput({
limit: 1000,
includeSystemMessages: true,
playerFilter: 'PlayerName'
})

console.log(output.personalitySignals)

Using with CLI​

# Extract from server logs
idiomark extract --minecraft --log-path ./logs/latest.log -o personality.json

# With options
idiomark extract --minecraft \
--log-path ./logs/latest.log \
--player-filter PlayerName \
--limit 1000 \
-o personality.json

Log Format Support​

Vanilla Minecraft​

[12:34:56] [Server] Steve joined the game
[12:35:01] [Server] <Steve> Hello everyone!

Bukkit/Spigot/Paper​

[12:34:56] [INFO] Steve logged in
[12:35:01] [INFO] Steve: Hello everyone!

Modern Log4j Format (1.14+)​

[12:34:56] [Server thread/INFO]: Steve joined the game
[12:35:01] [Server thread/INFO]: <Steve> Hello everyone!

Personality Signals Extracted​

Voice & Communication​

  • Common phrases and slang usage
  • Emoji usage patterns
  • Average message length
  • Command usage frequency

Interests & Activities​

  • Favorite items (mentioned in chat)
  • Favorite mobs/creatures
  • Building vs mining vs PvP focus
  • World and dimension preferences

Gaming Style​

  • Playstyle detection (builder, fighter, explorer, redstoner, social)
  • Preferred time of day for playing
  • Most played worlds
  • Achievement focus areas

Values​

  • Cooperation - Helping others, teamwork
  • Leadership - Guiding players, server commands
  • Creativity - Building, designing
  • Exploration - Discovering new areas
  • PvP Tendency - Combat vs peaceful focus

Configuration​

Log Path​

The adapter requires access to Minecraft log files:

  • Server logs: logs/latest.log
  • Player logs: logs/username.log (if available)

Options​

OptionTypeDefaultDescription
logPathstringrequiredPath to log file
usernamestringundefinedFilter by specific player
serverTypestring'vanilla'Server format detection
limitnumber1000Max messages to parse
includeSystemMessagesbooleantrueInclude joins, leaves, deaths
playerFilterstringundefinedOnly include this player's messages

Rate Limits​

No API rate limits - processes local log files only.

Examples​

Analyze Player Behavior​

const adapter = createMinecraftAdapter('./logs/latest.log')

const output = await adapter.getStructuredOutput({
playerFilter: 'Steve',
limit: 500
})

// Get playstyle
console.log('Playstyle:', output.personalitySignals.gaming.playstyle)
// Output: ['builder', 'explorer']

// Get interests
console.log('Interests:', output.personalitySignals.interests)
// Output: { mentionedItems: ['diamond', 'redstone'], ... }

Compare Multiple Players​

const adapter = createMinecraftAdapter('./logs/latest.log')

const output = await adapter.getStructuredOutput({
includeSystemMessages: false
})

// Get all mentioned players
const players = output.metadata.playersSeen
console.log('Players seen:', players)

License​

MIT