- 7,071 views, 2 today
- 555 downloads, 0 today
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:

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:

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:
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
The 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:

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
Compatibility | Minecraft 1.15 |
to | Minecraft 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
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
5423326
119
Create an account or sign in to comment.
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.
[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
Basically, using an advancement "player_interacted_with_entity"
{
"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"
}
}