COWMODSКаталог модов

Entity Logger

Entity Logger is a utility mod that records mob positions in real time and saves them into a log file.

Автор: mmfbmusic2623обновлён 28 сент. 2025 г.
ТехнологииУтилиты

Описание

EntityLogger

Real-time entity tracking and world state monitoring for Minecraft, optimized for bot automation and external tools.

📊 What does this mod do?

EntityLogger continuously monitors your Minecraft world and logs all relevant entity data to a fast SQLite database. Perfect for creating AI bots, automation scripts, or analytics tools that need real-time access to game state information.

✨ Key Features

🎯 Three Organized Data Tables

1. Monster Tracking (monsters table)

  • Logs all hostile mobs in your vicinity
  • Tracks name, exact coordinates (x, y, z)
  • Calculates distance to player
  • Records health values
  • Includes unique UUID for identification

2. Player Tracking (players table)

  • Monitors all players in the area (including yourself)
  • Same detailed information as monsters
  • Perfect for multiplayer coordination

3. World State (world_time table)

  • Current game day and tick count
  • Moon phase information (important for mob spawning!)
  • Human-readable time format: "Tag 5, Zeit: 14567 ticks, Mondphase: Vollmond 8/8"

⚡ Performance Optimized

  • High-speed updates: Database refreshes 2x per second (every 10 ticks)
  • WAL mode enabled: No database locking - read while the mod writes
  • Snapshot-based: Always current data, no historical clutter
  • Batch operations: Efficient SQL transactions for minimal overhead
  • Concurrent access: Python/Java scripts can read database in real-time

🤖 Perfect for Bot Scripts

The mod is specifically designed for automation:

  • Clean data structure - Easy to parse and query
  • No timestamps to worry about - Always fresh snapshots
  • Distance calculations included - Prioritize threats automatically
  • Reliable updates - Consistent 10-tick refresh cycle

📦 What’s Included

The mod automatically creates logs/minecraft_entities.db with three simple tables:

-- Example: Get nearest monsters
SELECT name, x, y, z, distance_to_player 
FROM monsters 
ORDER BY distance_to_player ASC 
LIMIT 5;

-- Example: Find all players
SELECT name, x, y, z FROM players;

-- Example: Current game time
SELECT game_day, game_ticks, moon_phase 
FROM world_time WHERE id = 1;

🎮 Use Cases

  • Combat Bots: Automatically track and respond to nearby threats
  • Multiplayer Coordination: Monitor teammate positions
  • Analytics: Study mob spawning patterns and player behavior
  • Automation Scripts: Build self-playing Minecraft bots
  • External Dashboards: Create real-time monitoring interfaces
  • Machine Learning: Collect training data for AI models

🔧 Technical Details

  • Client-side only - No server installation needed
  • Lightweight - Minimal performance impact
  • SQLite database - No external database server required
  • Fabric mod - Requires both Fabric Loader and Fabric API

Requirements

📋 Monster List

Tracks all hostile mobs including:

  • Basic: Zombie, Skeleton, Creeper, Spider, Witch, Slime
  • Nether: Blaze, Wither Skeleton, Magma Cube, Hoglin, Piglin variants
  • Ocean: Drowned, Guardian, Elder Guardian
  • Illagers: Pillager, Vindicator, Evoker, Ravager, Vex
  • Special: Warden, Breeze, Shulker, Silverfish
  • Excludes: Enderman, Zombified Piglin, Ghast (configurable in future versions)

🚀 Getting Started

  1. Install Fabric Loader for Minecraft 1.21.8
  2. Download and install Fabric API 0.133.4+1.21.8
  3. Drop EntityLogger into your mods folder
  4. Launch Minecraft
  5. Find the database at logs/minecraft_entities.db
  6. Start building your automation scripts!

💻 Example Python Integration

import sqlite3
import time

# Connect to the database
conn = sqlite3.connect('logs/minecraft_entities.db')
cursor = conn.cursor()

while True:
    # Get nearest monster
    cursor.execute("""
        SELECT name, distance_to_player 
        FROM monsters 
        ORDER BY distance_to_player ASC 
        LIMIT 1
    """)
    result = cursor.fetchone()
    
    if result:
        print(f"Warning! {result[0]} at {result[1]:.1f} blocks away!")
    
    time.sleep(0.5)  # Check twice per second

🤝 Community & Support

This mod is open for feature requests! If you’re building automation tools and need additional data logged, feel free to suggest improvements.


License: MIT
Supports: Minecraft 1.21.8 (Fabric)
Dependencies: Fabric API 0.133.4+1.21.8 (Required)
Java: 17+

Галерея

world_time.log usage in BotMMFB Projectworld_time.log during night includes moonphaseBotMMFB Project using advanced combat system with Entity LoggerBotMMFB Project using Entity Logger

Последние версии

Все версии →
release

Entity Logger 1.3.2

1.3.2
28 сент. 2025 г.140Minecraft: 1.21.8fabric
Скачать
Что нового
# EntityLogger v1.3.2 - World Time Fix ## 🐛 Critical Bug Fix ### World Time Logging Resolved - **Fixed**: World time data now properly saves to database - **Issue**: `world_time` table was not being populated due to UPDATE query on non-existent record - **Solution**: Replaced `UPDATE` with `INSERT OR REPLACE` for reliable data insertion ### Database Structure Improvements - **Three separate tables** for clean data organization: - `monsters` - Monster positions and distances - `players` - Player positions and distances - `world_time` - Game day, ticks, and moon phases - **Simplified initialization** - No more complex table setup requirements ## 🔧 Technical Details ### SQL Queries for Bot Scripts ```sql -- Get all monsters sorted by distance SELECT name, x, y, z, distance_to_player, health FROM monsters ORDER BY distance_to_player ASC; -- Get all players SELECT name, x, y, z, distance_to_player, health FROM players; -- Get current world time SELECT game_day, game_ticks, moon_phase, time_text FROM world_time WHERE id = 1; ``` ### Performance Features - **WAL mode enabled** for concurrent read/write access - **Complete table refresh** every 10 ticks (2x per second) - **Optimized for external scripts** - no historical data clutter ## ⚠️ Migration Notes - **Delete old database**: Remove `minecraft_entities.db` before updating - **Fresh start recommended**: Let the mod recreate tables with proper structure --- ## Requirements - **Fabric 1.21.8** - **Fabric API 0.129.0+** - **Java 17+** **Perfect for bot automation and real-time monitoring!**
beta

Entity Logger 1.3.1

1.3.1
28 сент. 2025 г.29Minecraft: 1.21.8fabric
Скачать
Что нового
# EntityLogger v1.3.1 - Performance & Compatibility Update ## 🔧 Fixes & Improvements ### World Time Format - **Fixed**: World time format now matches original log file format - **Database field**: `world_time_text` contains exact string: `"Tag 5, Zeit: 14567 ticks, Mondphase: Vollmond 8/8"` - **Backward compatibility**: Existing scripts can parse world time without changes ### Database Performance - **WAL Mode enabled**: Write-Ahead Logging for better concurrent access - **Optimized settings**: - `synchronous = NORMAL` - Better write performance - `cache_size = 10000` - Improved query speed - `temp_store = memory` - Faster temporary operations ### Concurrent Access Support - **Multi-reader safe**: Python scripts can read while mod writes - **No more lock conflicts**: Eliminates "database is locked" errors - **Real-time monitoring**: External tools can continuously poll database ## 🎯 Benefits - Smoother integration with monitoring scripts - Better performance for frequent database access - Maintains compatibility with existing parsing logic --- ## Technical Details **SQL Query for world time:** ```sql SELECT world_time_text FROM world_info WHERE id = 1; ``` **Requirements:** - Fabric 1.21.8 - Fabric API 0.129.0+ - Java 17+
beta

Entity Logger 1.3.0

1.3.0
28 сент. 2025 г.29Minecraft: 1.21.8fabric
Скачать
Что нового
# EntityLogger v1.3.0 - SQLite Database Update ## 🔄 Major Changes Complete rewrite from file-based logging to SQLite database Replaced .log files with a fast SQLite database (logs/minecraft_entities.db) Significantly improved performance and data accessibility Perfect for bot scripts and external tools ## ✨ New Features Database Structure Snapshot-based updates: Database refreshes completely every 10 ticks (2x per second) All players tracked: Not just yourself, but all players in the area Enhanced entity data: Entity UUID for unique identification Health values (when available) Distance to player for priority calculations ## Improved Performance Batch operations: All database writes happen in single transactions No historical clutter: Always current data, no confusing timestamps Optimized for automation: Designed specifically for bot script integration ## 🛠️ Technical Details Database Tables entities: Current positions of all players and monsters world_info: Game day, time, and moon phase information ## 🔧 Dependencies Added SQLite JDBC driver (org.xerial:sqlite-jdbc:3.44.1.0) No additional setup required - library is included in the mod ## 🎯 Use Cases Bot automation: Clean, structured data for AI scripts Analytics tools: Easy data export and analysis Multiplayer coordination: Track all players and threats Performance monitoring: Real-time entity tracking ## 📝 Migration Notes Breaking change: No longer generates .log files All data now in logs/minecraft_entities.db Update any scripts that relied on the old log format ## Download Fabric 1.21.8 compatible Requires Fabric API 0.129.0+ Java 17+ required
alpha

Entity Logger 1.2.1

1.2.1
20 сент. 2025 г.64Minecraft: 1.21.8fabric
Скачать
Что нового
## Version 1.2.1 Added new feature: world_time.log created and updated every 200 ticks. Logs the in-game world time. Logs the moon phase during nighttime. Separate log file for world time to keep entity logs clean. Moon phase calculation follows Minecraft standard (Full Moon, New Moon, Waxing/Waning). Logging is append, so existing logs are not overwritten. Version 1.2.1 Stabilized entity logging: positions logged every ~2.5 seconds (50 ticks). Only selected monsters are logged (via name whitelist). Player position is always logged. Automatically creates log folders if they do not exist. ## Version 1.2.0 Initial public release with basic entity logging. Logs positions of player and monsters. Integrated with Fabric ClientTickEvents.