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_head drops the player's head at the current position as an item.
  • phi.playerinfo:give_head gives the player their own head
  • phi.playerinfo:store_head stores the player's head into slot 0 of the Phi shulker box
  • phi.playerinfo:name gets the player's name as plain text and stores it into storage phi.playerinfo:temp name
  • phi.playerinfo:suuid gets the string version of the player's UUID and stores it into storage phi.playerinfo:temp suuid
  • phi.playerinfo:name_and_suuid gets the string version of the player's UUID, and the player's name as plain text, and stores them into storage phi.playerinfo:temp suuid and storage phi.playerinfo:temp name respectively