Reads the player's position or view rotation.
None.
pos() returns world coordinates x, y, z. blockPos() returns the corresponding block coordinates. look() returns yaw, pitch.
command('whereami', function(sender)
if not sender.isPlayer then return true end
local x, y, z = sender:blockPos()
local yaw, pitch = sender:look()
sender:send("Block position: " .. x .. ", " .. y .. ", " .. z)
return true
end)