-
-
Notifications
You must be signed in to change notification settings - Fork 0
Metadata
fayer3 edited this page Sep 30, 2025
·
4 revisions
VSE provides Spigot metadata on Player objects so other plugins can provide special support for handed interactions or somesuch. If you aren’t sure what metadata is, check the Spigot documentation. The API supports multiple plugins using the same metadata key, so make sure you filter to our specific plugin name (Vivecraft-Spigot-Extensions).
Every player has a head and two hands (obviously), each of which have a 6DOF position and rotation. There are also some tertiary values so you can determine how to properly handle a particular player. The full set of available keys is as follows:
| Key(s) | Value |
|---|---|
head.pos, righthand.pos, lefthand.pos
|
Location representing the absolute position in the world of the VR object. Also includes the direction for convenience. |
head.dir, righthand.dir, lefthand.dir
|
Vector representing the forward direction of the VR object. This is gimbal locked; if you want up or right vectors, use the rot value below. |
head.rot, righthand.rot, lefthand.rot
|
Array of 4 floats, representing a quaternion with the order w,x,y,z. You’ll need a Quaternion class to deal with this properly, but it’s much more flexible than the dir value. As of 1.19.4 Minecraft ships with Jom, whch has one of those, and this plugin also ships it for older versions. |
seated |
Boolean representing the player is in seated mode. This mode disables hand tracking and places the VR hands to the sides of the head, to allow for keyboard and mouse play in VR. |
height |
Float representing whether the player's calibrated height, which mainly affects how tall they appear to other players. |
activehand |
String representing which hand (left or right) last performed some actions. Currently throwing projectiles such as snowballs. |