# IScriptFactory.toNBT [← IScriptFactory](index.md) · [← Master](../../wiki.md) toNBT(java.lang.Object object) INBTCompound Converts an object to an INBTCompound representation. default vector(double x, double y, double z) ScriptVector Create a ScriptVector.