Doggy Talents

Doggy Talents

27M Downloads

DogStats implementation Idea

DashieDev opened this issue ยท 3 comments

commented

Feature Description:

Another cool feature in the mod as I know is the Dog Statistics. I can tell the system is already implemented by checking the NBT.
But currently, as I see, there is no intuitive way to access this rather than using commands, I can confirm that by looking at the Source Code where the StatsTracker in DogEntity doesn't have any references to read the value elsewhere. So I guess a GUI should be implemented. My idea is the GUI should be part of the Dog's Main Menu, where it will consist of pages, one for the talent and names, the other one for the Stats, and in the future, one for wearing accessories and armors, which is more intuitive than using the collar shear. I just coded a prototype to demonstrate my vision, it is just a prototype because it currently doesn't work as intended as I am currently finding a way to fetch the dogStats from the client side (i am new to this) (wonder if I should use the DataParameter x entityData way to sync the object with the client) and the design is quite basic.... How do you think?

Relation to any Known/Unknown Bug:

Additional Information

2021-09-27.18-11-30_Trim.mp4

:

commented

You are correct in thinking there is no way to access the stats currently. I implemented the tracking but didn't get the time to create a good solution to view them.

You idea of another GUI screen is as good as any. Since we'd only care about the stats when opening the GUI I suspect the best way would be to sent a request packet and the server send back the data in a seperate packet. If you'd like to share the code I can finish and push into the mod.

commented

Okay I am going to implement the code offically , but it will take some time because i was experimenting on a seperate workspace, which is basically a copy of the source which i treats as my playground, which contains a real huge amount of Logging code and experimental code, thus that is just a quick prototype, i am currently designing the gui and proccessing stuffs. I am going to do some optimizations too.
And yes , i implemented that prototype using the statically fetch method (packets)

commented

Hey, thanks for taking the time to create this issue and I'm sorry I didn't get round to resolving it. I've not worked on this project for a while and have decided to archive the git repository. Fear not, there is a fork https://github.com/DashieDev/DoggyTalentsNext which might be of interest. I don't expect to be back within the Minecraft community so farewell and happy mining!