VanilLog 是一个完全原版(vanilla)的 Minecraft 数据包,旨在帮助服务器管理员追踪破坏/洗劫等行为,且不会对游戏玩法产生任何影响。你只需将此数据包放入 world/datapacks 文件夹即可。之后,每当玩家执行被追踪的操作时,你就能在服务器日志中看到相应的记录。
VanilLog 的目的并非阻止或预防破坏行为,而是为管理员提供信息以判断是谁可能实施了破坏。我专门设计它以确保对游戏玩法的影响降到最低,你可以自由修改它以记录其他你想追踪的内容。如果你有任何建议,请告诉我,这是我制作的第一款数据包,因此我非常欢迎建设性的批评。此外,它并不完美,由于 Minecraft 本身的限制,可能存在许多规避检测的方法,例如无法检测对非生物实体的击杀,以及没有关于打开船载箱子、矿车箱等的统计信息。
目前它记录以下操作:
已记录的操作列表
打开箱子
破坏箱子
打开 barrels(木桶)
破坏 barrels(木桶)
打开潜影盒
破坏潜影盒
打开漏斗
破坏漏斗
放置 TNT 和 TNT 矿车
放置发射器
拾取物品展示框。遗憾的是,由于 bugs.mojang.com/browse/MC-128473 中的 bug,minecraft.killed:minecraft.item_frame 等指令无法正常工作,因此这是我能做到的最好方式来追踪人们破坏物品展示框的行为。
拾取已填充的地图。这对我来说是个问题,因为人们一直在破坏地图艺术创作等内容。
使用 lava bucket(熔岩桶)和 water bucket(水桶)
使用打火石和火焰弹
破坏煤炭、铁、金、绿宝石、钻石和下界合金方块
破坏信标
破坏耕地
放置漏斗
放置漏斗矿车
拾取发光物品展示框
拾取漏斗矿车
拾取箱型矿车
破坏任何类型的告示牌或悬挂式告示牌
破坏并打开熔炉、烟熏炉和高炉
破坏刷怪笼
破坏导路石
使用末影水晶
破坏合成器
破坏保险箱
破坏试炼刷怪笼
破坏任何铜质箱子
击杀铜傀儡
简要说明其工作原理:它通过记分板目标监控所有你想要记录的操作。当玩家执行了需要记录的操作时,数据包会在玩家正上方 1000 格处召唤一只小猪,其名称精确描述该操作。随后,它在村民上方生成一瓶伤害药水溅射效果,并将该药水的“所有者”设置为该玩家。药水杀死小猪,而小猪死亡时的消息即作为日志条目。
如果你想贡献代码,请访问
VanilLog is a 100% vanilla Minecraft datapack targeted at catching griefing/raiding/etc on Minecraft servers, without affecting gameplay in any way. All you have to do is place the datapack in your world/datapacks folder. Then you'll be able to see in your server log every time a player does one of the tracked actions.
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.
Currrently it logs:
List of logged actions
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
Breaking Trial Spawners
Breaking any Copper Chests
Killing Copper Golems
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 splash potion of harming above the villager and sets the "owner" of the splash potion to the player. The potion kills the pig, and the pigs death message serves as the log entry.
If you'd like to contribute, visit
评论 0
登录后参与评分
还没有评论,来抢沙发吧