Minecraft Data Packs / Server Utility

VanilLog, 100% Vanilla Grief Logging

    • 7,071 views, 2 today
    • 555 downloads, 0 today
    • 31
    • 31
    • 34
    AdorableCat
    Level 22 : Expert System
    10
    Have you ever wanted to run a vanilla server but hate not being able to actually log and enforce griefing rules? This datapack can help by logging a wide variety of player actions such as opening chests, placing TNT, using flint and steel, and more. All you have to do is place the datapack in your world/datapacks folder and then reload, the setup function will create all the required scoreboard objectives. Then you'll be able to see in your server log every time a player does one of the tracked actions.

    The Log:
    Screenshot of server log
    The log might look a little convoluted and confusing (because truthfully it is, vanilla minecraft doesn't have a easy way to simply log something without saying it to every player), but all the relevant information is there:
    The Log (annotated)
    VanilLog isn't intended to stop or prevent griefing, but give admins the information to determine who may have done the griefing. I made it specifically to have as little impact on gameplay as possible, you're free to modify it to log whatever else you might want to log and if you have any suggestions please let me know, this is the first datapack I've ever made so I'm open to constructive criticism. It is also not perfect, there are probably plenty of ways to get around detection due to limitations in minecraft, such as detecting killing non mob entities not working and no stats for opening chest boats, chest minecarts, etc.

    A complete list of actions that VanilLog currently logs:
    List
    • Opening Chests
    • Breaking Chests
    • Opening Barrels
    • Breaking Barrels
    • Opening Shulker Boxes
    • Breaking Shulker Boxes
    • Opening Hoppers
    • Breaking Hoppers
    • Placing TNT and TNT Minecarts
    • Placing Dispensers
    • Picking up item frames. Unfortunately due to bugs.mojang.com/browse/MC-128473 minecraft.killed:minecraft.item_frame and much more doesn't work, so this is the best I can do to track people breaking item frames.
    • Picking up filled maps. This is a problem for me cuz people keep breaking map art and stuff.
    • Using Lava and Water Buckets
    • Using Flint and Steel and Fire Charges
    • Breaking Coal, Iron, Gold, Emerald, Diamond, and Netherite Blocks
    • Breaking Beacons
    • Breaking Farmland
    • Placing Hoppers
    • Placing Hopper Minecarts
    • Picking up glow item frames
    • Picking up Hopper Minecarts
    • Picking up Chest Minecarts
    • Breaking any Sign or Hanging Sign variant
    • Breaking and Opening Furnaces, Smokers, and Blast Furnaces
    • Breaking Spawners
    • Breaking Lodestones
    • Using End Crystals
    • Breaking Crafters
    • Breaking Vaults and Trial Spawners



    To briefly explain how it works, it monitors scoreboard objectives for all the actions you want to log. When a player does something you want to log, the datapack summons a baby pig with a name describing the action exactly 1000 blocks above the player. It then spawns a harming area effect cloud at the pig and sets the "owner" of the cloud to the player. The potion kills the pig, and the pigs death message serves as the log entry.

    The latest version of the pack supports minecraft servers 1.20 and up, but there are compatibility versions for servers going back to 1.15. If you need a version compatible with a pre 1.20 server you can download it from https://github.com/TheAdorableCat/VanilLog/releases/tag/v1.4

    If you have any issues or suggestions, please leave a comment or use https://github.com/TheAdorableCat/VanilLog/issues
    CompatibilityMinecraft 1.15
    toMinecraft 1.21
    Tags

    8 Update Logs

    Vanillog v1.4.2 : by AdorableCat 12/31/2024 5:13:01 pmDecember 31, 2024 @ 10:13 pm UTC

    hiiii here is Vanillog 1.4.2, now logging pale oak signs and chest boats, and also i fixed the uninstall command for real this time.

    Also I re zipped all the compatibility versions to use them as-is without needing to unzip them.

    Changes:
    -logs breaking Pale Oak signs
    -logs breaking Pale Oak hanging signs
    -logs picking up Pale Oak chest boats
    -fixed the uninstall function because last time I forgot to add the new scoreboard objectives to it.

    You can get the latest release or a version compatible with older servers from 1.15 to 1.20 here: https://github.com/TheAdorableCat/VanilLog/releases/tag/v1.4.2
    LOAD MORE LOGS

    Create an account or sign in to comment.

    AdorableCat
    03/17/2025 10:43 am
    Level 22 : Expert System
    I tested in the 1.21.5 pre releases and assuming they don't break anything the datapack should work perfectly fine in 1.21.5
    1
    MemberOfThe
    10/07/2024 10:10 am
    Level 1 : New Explorer
    Where can I see the logs?
    2
    AdorableCat
    12/26/2024 11:27 am
    Level 22 : Expert System
    Assuming the datapack is running correctly the logs will show up in your regular server log. If it's not installed correctly you won't get the message "Starting Vanillog 1.4.x" when the server starts up or is "/reload"ed and it won't show up in "/datapack list".

    if you're using Realms or another service that doesn't give you access to the server logs this datapack unfortunately does literally nothing for you sorry.
    1
    User4943589G
    10/07/2024 10:13 am
    Level 1 : New Miner
    everything is obvious, just read the description of the datapack carefully
    1
    MemberOfThe
    10/07/2024 10:16 am
    Level 1 : New Explorer
    There is no info
    2
    sirjeff
    10/03/2024 1:43 am
    Level 1 : New Miner
    Looks like what I need but

    [​main/WARN]: Couldn't get pack info for: abl: 'pack.mcmeta' in ResourcePack '.\world\datapacks\vanillog-main-e1640.zip'



    I'm on Java 1.16
    1
    AdorableCat
    12/26/2024 11:10 am
    Level 22 : Expert System
    hi sorry i havent payed attention to this in a while for a 1.16 server you'll need the "Vanillog-1.16-Compatible" from https://github.com/TheAdorableCat/VanilLog/releases/tag/v1.4 dont know if this helps u 3 months later sorgy
    1
    AdorableCat
    06/12/2024 3:02 pm
    Level 22 : Expert System
    I have a version ready to be uploaded tomorrow for 1.21. The folder structure of datapacks was changed with 1.21 so previous verisons will not function on 1.21 and above. just waiting for the final release to be certain they don't make any other changes that'd break stuff.
    1
    Monkeee_Cs
    03/27/2024 5:14 pm
    Level 11 : Journeyman Crafter
    Very well made datapack!
    1
    FunkyToc
    03/27/2024 4:46 am
    He/Him • Level 77 : Legendary Programmer Cat
    Hi, just taking a look here, if you want, take a look at Visitor Guard as there is a way to log chest_boat and other =)

    Basically, using an advancement "player_interacted_with_entity"

    Code
    {
    "criteria": {
    "open_chest": {
    "trigger": "minecraft:player_interacted_with_entity",
    "conditions": {
    "entity": [
    {
    "condition": "minecraft:entity_properties",
    "entity": "this",
    "predicate": {
    "type": "minecraft:chest_boat"
    }
    }
    ]
    }
    }
    },
    "rewards": {
    "function": "nm:log/this/interact/and/revoke"
    }
    }
    2

    Welcome