Minecraft Data Packs / Server Utility

VanilLog, 100% Vanilla Grief Logging

  • check_circle Functions
  • 4,753 views, 13 today
  • 352 downloads, 1 today
  • 30
  • 27
  • 26
AdorableCat's Avatar AdorableCat
Level 18 : Journeyman Engineer
9
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



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.20
Tags

6 Update Logs

Vanillog v1.4 : by AdorableCat 03/27/2024 12:04:15 amMar 27th

Meowdy, here's Vanillog v1.4. Now with versions compatible all the way back to 1.15. If you want to use Vanillog on a server older than 1.20, just download the one corresponding to your servers version.

Changes:
-Now uses the /damage command instead of area effect clouds. Compatibility versions still use effect clouds since /damage wasn't added until Minecraft 1.19.4
-Now logs players breaking all colors of Shulker Boxes, as well as:
-Breaking and opening Dispensers
-Breaking and opening Droppers
-Breaking Coal Blocks
-Using End Crystals
-Breaking Conduits
-Breaking Lodestones
-Breaking Spawners
-Breaking and opening Furnaces
-Breaking and opening Smokers
-Breaking and opening Blast Furnaces

You can get the latest release or a version compatible with older servers at github.com/TheAdorableCat/VanilLog/releases/tag/v1.4
LOAD MORE LOGS

Create an account or sign in to comment.

1
03/27/2024 5:14 pm
Level 7 : Apprentice Crafter
Monkeee_Cs
Monkeee_Cs's Avatar
Very well made datapack!
2
03/27/2024 4:46 am
Level 74 : Legendary Lumberjack
FunkyToc
FunkyToc's Avatar
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
03/27/2024 4:12 pm
Level 18 : Journeyman Engineer
AdorableCat
AdorableCat's Avatar
oo thanks I'll take a look at that ik a year or so ago someone recommended using advancements for some things but I had issues getting it to work reliably but also might have just been doing it wrong.
1
11/02/2023 5:22 pm
Level 17 : Journeyman Farmer
RainbowTea
RainbowTea's Avatar
Would this work on a realms server?
1
12/20/2023 9:08 am
Level 18 : Journeyman Engineer
AdorableCat
AdorableCat's Avatar
It would "work" but be useless since you can't access the server logs on realms.
1
09/27/2023 9:56 pm
Level 2 : Apprentice Miner
DragonOracle1986
DragonOracle1986's Avatar
Is there anyway you could provid links for older versions of minecraft?
2
10/02/2023 11:18 am
Level 18 : Journeyman Engineer
AdorableCat
AdorableCat's Avatar
The github page under "releases" has all the past releases of the datapack back to 1.18 ( and will probably work on earlier ones too but I never tested it on anything older).
1
10/03/2023 7:08 pm
Level 2 : Apprentice Miner
DragonOracle1986
DragonOracle1986's Avatar
yup thank you we had figured it out right after i posted the question. this has helped out so much thanks again for making this datapack
1
09/26/2023 1:57 pm
Level 2 : Apprentice Miner
DragonOracle1986
DragonOracle1986's Avatar
Hay I've put this on my server but I can seem to get the data pack to work I'm using the 1.20.2. So how do I load this onto my server? Do I have to unzip it? But when i do that I cant load it up onto my server.
2
10/02/2023 11:26 amhistory
Level 18 : Journeyman Engineer
AdorableCat
AdorableCat's Avatar
I assume that means you're uploading it to like a server hosting provider not hosting it directly on your own hardware? They might be unzipping the file wrong. Here's it packaged a bit different, try using this one instead and let me know: https://drive.google.com/file/d/1oMin_OU2vB6V8h20oF2hOkOX_4McDQvV/view?usp=sharing

also make sure your server host actually lets you see the server logs because I know realms doesn't let you.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome