Minecraft Data Packs / Server Utility

VanilLog, 100% Vanilla Grief Logging

  • check_circle Functions
  • 1,167 views, 81 today
  • 87 downloads, 6 today
  • 16
  • 14
  • 10
AdorableCat avatar AdorableCat
Level 7 : Apprentice Engineer
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.

A complete list of actions that VanilLog currently logs:
  • 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 Iron, Gold, Emerald, Diamond, and Netherite Blocks
  • Breaking Beacons
  • Breaking Farmland

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.

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

3 Update Logs

VanilLog v1.2 : by AdorableCat 01/26/2022 10:44:17 pmJan 26th

This release changes some file names and removes some files. If you are updating from a previous version, remove the old resource pack completely before installing this version.

Huge thanks to github user 2mal3, they're responsible for most of these changes and I pretty much just polished them.

Change log:

  • The scoreboard values are now checked every 10 game ticks (0.5 seconds) instead of constantly. This should improve performance.
  • VanilLog now respects villager human rights (it now logs by killing baby pigs instead of villagers. This also means events are no longer logged twice, because for some reason villagers get 2 death messages)
  • Using AreaEffectClouds instead of Potions, it just works better idk why I didn't think of it before.
  • Split a few things into their own separate functions.

Create an account or sign in to comment.

01/26/2022 10:46 pm
Level 34 : Artisan Fox
GalaxiumNation avatar
I got an update notif. What. Is. IT.
01/26/2022 10:47 pm
Level 34 : Artisan Fox
GalaxiumNation avatar
I could have just looked at the updates.
01/26/2022 2:50 am
Level 1 : New Miner
Thewizard93 avatar
Will this work in realms?
01/26/2022 11:24 am
Level 7 : Apprentice Engineer
AdorableCat avatar
You could install it in a realm but I'm pretty sure it'd be useless since I don't think you can see the server log when you're hosting a realm?
01/19/2022 9:09 pm
Level 1 : New Miner
User3988438G avatar
where do i go to view the logs?
01/20/2022 12:14 am
Level 7 : Apprentice Engineer
AdorableCat avatar
you can see the log in the server console window, or read them from the "logs" folder
01/20/2022 1:41 pm
Level 1 : New Miner
User3988438G avatar
they are not appearing there, i put the data pack in that data pack folder is there a command to start it?
01/21/2022 1:17 pm
Level 7 : Apprentice Engineer
AdorableCat avatar
If you type /datapack list does it show up in that list? it should automatically set itself up when it first starts.
12/29/2021 9:48 am
Level 9 : Apprentice System
Marco2124 avatar
Very nice way of doing it, just as the other comment said, very smart
12/26/2021 8:56 pm
Level 46 : Master uwu
plexionDev avatar
actually really smart, good job
Planet Minecraft


© 2010 - 2022