1

How to make a data pack to track players

SpeedRider's Avatar SpeedRider9/22/18 5:40 am history
1 emeralds 1.5k 2
9/23/2018 8:46 pm
garlicbreathinator's Avatar garlicbreathinator
hello i was wondering how i can make a data pack that will track were a player is and what blocks a player has broken.

this would be really help full to track griefer and what they have done so it no longer a just waiting to catch someone griefing.

or even a program that can piggyback a server and collect info on player and what there doing and were they are.

please help if you can :D
thanks for reading :D
Speed
Posted by SpeedRider's Avatar
SpeedRider
Level 20 : Expert Miner
0

Create an account or sign in to comment.

2

1
09/23/2018 8:46 pm
Level 31 : Artisan Engineer
garlicbreathinator
garlicbreathinator's Avatar
While it's impossible to track which blocks a player has broken, it would be easily possible (however intense on both server resources and admin's time) to enforce some simple protection. The only real things you could enforce with a reasonable amount of effort would be valuable blocks. Basically, you would give each player and id, and then when they break a "protected" block (a beacon, for example) a scoreboard detects it. An invisible, no-hitbox armor stand is summoned at their location to mark that it happened, and it is given a score based on the id of the breaker. When one of these armorstands exists and an admin is on, it sends them a notification and the coordinates. They can then pull up the table of player ids and figure out who broke it and then if it belonged to them.

Of course, if you were using spigot there would be far easier plugins to use. If you're on a realm or something though, this is the best you've got.
1
09/22/2018 6:44 am
Level 57 : Grandmaster Engineer
ShelLuser
ShelLuser's Avatar
This is definitely something you'd want to solve with a plugin, not a datapack. The problem is that Minecraft doesn't know the concept of variables, and although you can easily store and retrieve single values it becomes quite a hassle if you need to start working with collections.

And there are already some very good solutions for this out there. GriefPrevention and CoreProtect come to mind here.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome