Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

Dev Mode

hammy275 edited this page Jun 26, 2023 · 2 revisions

About

Starting with mc-vr-api version 3.0.1, you can now test VR development without entering VR. To use dev mode, simply launch your mod with mc-vr-api as a dependency from a dev environment!

Features

  • Press the Down Arrow Key to set the position of the HMD to 2 blocks in front of you, facing the nearest cardinal direction to where you're looking!
  • Press the Left Arrow Key to set the position of the left controller (controller 1) to 2 blocks in front of you, facing the nearest cardinal direction to where you're looking!
  • Press the Right Arrow Key to set the position of the right controller (controller 0) to 2 blocks in front of you, facing the nearest cardinal direction to where you're looking!
  • Press the Up Arrow Key to toggle the pretending to be in VR.
  • White, red, and blue particles are shown for the HMD, and the left and right controllers respectively, with black particles indicating the direction they're facing.

Limitations

  • The positions and rotations of the eyes are the same as the HMD.
  • Until their positions and rotations are set by pressing one of the arrow keys above, the positions of the HMD and both controllers are set at (0, 0, 0) with a look vector of (0, 0, 0).
  • The rotation matrix is set to all 0s, and the roll for the rotation matrix is 0.
  • Out of all of the API functions that retrieve an IVRPlayer instance, only getVRPlayer() uses the faked data. Other functions that retrieve IVRPlayer instances will return null, so your code will need to handle NullPointerExceptions in this case, or programatically pick which IVRPlayer instance to use.

Getting Started

Getting Started

Logical Sides and Ping Limitations

Version Compatibility

API Interface

IVRAPI

Data Interfaces

IVRPlayer

IVRData

Dev Mode

Dev Mode

Removed

VRPlayerTickEvent (Removed as of 2.0.0 Pre-Release 1)

Clone this wiki locally