I’m trying to make an axe that can chop down a tree that was created by the server.
I’ve got everything all set-up and ready to go with all that FilteringEnabled stuff. I just need help handling the data for a forest full of trees.
So, when handling the data of all trees (health, drops, etc), should that be stored in Value objects (Int, Object, String) inside each tree itself? --But wouldn’t this mean the client has ‘access’ to the tree data and could abuse it, like making it a 1-hit chop down and dropping extra wood?
Or should I set up a datatable to handle all the tree data and fill in values as the trees spawn in? --This feels like it could be more work for the server, since there could be 100,000 or more trees at once, but I really don’t know enough about the limitations of tables yet. Plus I have no idea how this works across multiple servers running at once.
If anyone can point me in the right direction, would be greatly appreciated!
Thanks.