- check_circle Functions
- 4,753 views, 13 today
- 352 downloads, 1 today
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:
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
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.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
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
tools/tracking
5423326
119
vanillog-100-vanilla-grief-logging
Create an account or sign in to comment.
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"
}
}
also make sure your server host actually lets you see the server logs because I know realms doesn't let you.