Player Information - MinecraftPhi/MinecraftPhi-modules GitHub Wiki
This module collects data about the player. Currently the head, name as plain text, and the string version of the UUID. It also overrides the player loot table, causing the player's head to drop if they have the tag phi.playerinfo.drop_head. The functions will temporarily add this tag, and remove it, however you can also add this tag manually for any player that you want to drop their head. The functions are smart and only remove the tag if the tag was not already present before the function call
Functions
Note that all these functions must be called as a player, and they replace the item in slot 0 of the Phi shulker box.
phi.playerinfo:drop_headdrops the player's head at the current position as an item.phi.playerinfo:give_headgives the player their own headphi.playerinfo:store_headstores the player's head into slot 0 of the Phi shulker boxphi.playerinfo:namegets the player's name as plain text and stores it intostorage phi.playerinfo:temp namephi.playerinfo:suuidgets the string version of the player's UUID and stores it intostorage phi.playerinfo:temp suuidphi.playerinfo:name_and_suuidgets the string version of the player's UUID, and the player's name as plain text, and stores them intostorage phi.playerinfo:temp suuidandstorage phi.playerinfo:temp namerespectively