I came across a use case when making a datapack for my personal use where I wanted to modify my player statistics, and I was unable to do so using vanilla commands. I found I was also unable to read from the players' statistics.
A command that allows map(command block) and datapack makers to read from and write to a player's stats/UUID.json would be an incredibly powerful tool.
For some example use cases:
A qol datapack which, when a player picks a block that they don't have in their inventory but have the ingredients to craft, crafts that item for the player immediately, and counts the craft in their statistics.
A new content datapack which changes what the wandering trader offers dynamic trades to players based on their 'calculated reputation' which considers among otherthings how many wandering traders nearby players have killed. The best trades could be barred behind not killing traders, or quests could be crafted to offer player's clemency / decrease their stats criminal record.
A social datapack which facilitates 'compare with friends' games like Hermitcraft's "Stat Poker" through the chat window or a leaderboard based directly on stats.
A seedable psuedo-random function checks a player's time since last death * time since last sleep, or other innocuous combination of large-number stat, modded by a small base (rand functions are kinda already a solved problem, yes; but, what's another option)?
Please sign in to leave a comment.
0 Comments