CraftAudit

Quick rating

CraftAudit

No reviews yet

CraftAudit is a server-side audit mod/plugin for Minecraft Forge that records world changes made by players and the environment (block place/break, container I/O, ignition, item-frame/painting actions, bucket usage, kills, etc.).

Storage & Organization
Mod Loaders
Forge
NeoForge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unsupported
Server Required

About

Project Details

Type
Mod
License
Creative Commons Attribution 4.0 International
Latest Version
1.0.8
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

CraftAudit – Block/Entity Audit Logger & Rollback Tool (Forge)

Overview

CraftAudit is a server-side audit mod/plugin for Minecraft Forge that records world changes made by players and the environment (block place/break, container I/O, ignition, item-frame/painting actions, bucket usage, kills, etc.). It provides in-place inspection, area queries, rollback/restore and undo features, supporting SQLite or MySQL storage.

Features

  • Block Change Logging

    • Player break/place (with optional BlockState/NBT snapshots)
    • Environment breaks (natural_break): explosion, fluid, gravity
    • Interaction Logging

      • Container put/take (menu session-based, accurate block position)
      • Sign editing (logs text)
      • Ignition (campfire/candle/TNT/fire)
      • Redstone interactions: button/lever/door
      • Item frame/painting: put/take/rotate/place/break
      • Bucket: fill/empty/catch/milk
      • Kill: logs killer, victim, reason, projectile, weapon, distance, etc.
    • Query

      • In audit mode, left/right-click a block to view logs for that position (paged)
      • Area+time queries (near command)
    • Rollback/Restore/Undo

      • Rollback a player’s place/break within radius & time window (rollback)
      • Restore all breaks (player & environment) or filtered by type (restore)
      • Restore kills: respawn non-player entities at log positions (restore ... kill)
      • Undo last rollback/restore (undo): revert blocks or remove spawned entities
    • Storage

      • SQLite (default) or MySQL backend
      • Configurable file location and MySQL parameters
    • Other

      • Localized names for items/blocks
      • Audit mode exempt from logging (auditor actions ignored)

Commands

All craftaudit commands have /ca alias. OP level 2 required.

Basic

  • /craftaudit status
    Show database/mode status
  • /craftaudit inspect or /ca i
    Toggle audit mode (left-click: block logs, right-click: interaction logs)
  • /craftaudit log [page]
    Show interaction logs for last right-clicked block (paged)
  • /craftaudit blocklog [page]
    Show block logs for last left-clicked block (paged)

Area Queries

  • /craftaudit near <radius> <time> [page]
    Search logs near player (by radius & time)
    • Time format: Ns/Nm/Nh/Nd (e.g., 30m, 12h, 5d)

Rollback/Restore/Undo

  • /craftaudit rollback <player> <time> [radius=10]
    Roll back a player’s place/break within area & time
  • /craftaudit restore <time> [radius=10] [type]
    Restore breaks or kills, optionally filtered by type:
    • No type: all breaks (player & environment)
    • break: only player breaks
    • natural/natural_break: only environment breaks
    • explosion/fluid/gravity: environment breaks by cause
    • kill or kill:<entity_id>: restore kills (respawn non-player entities)
    • /craftaudit undo
      Undo last rollback/restore (revert blocks, remove spawned entities)
    • /craftaudit purge <time>
      Purge logs older than time (irreversible)

Time Format

  • Examples: 30s, 15m, 12h, 7d

Installation

  • Place the mod jar in your Forge server’s mods folder
  • Requires Java 17 (Forge 1.19+)
  • Config file is generated after first run

Configuration

  • Database:
    • SQLite: default at gameDir/craftaudit/craftaudit.db
    • MySQL: configurable host, port, database, user, password, SSL, params

Data & Privacy

  • Only logs essential events, coordinates, item/block/entity IDs for audit/rollback
  • BlockEntity NBT is stored (compressed, size-limited, opt-in) for BE blocks on break
  • Use purge regularly to clean up old logs

Build

  • Requires JDK 17 and Forge MDK
  • Typical steps: import Gradle, sync dependencies, build jar

Contributing

  • Issues, PRs, and feature requests welcome

License

Licensed under Creative Commons Attribution 4.0 International (CC BY 4.0)
See LICENSE.

Copyright (c) 2025 CraftAudit contributors

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Modrinth
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works