Code/Helper/TransformExtension.cs

Extension methods for Sandbox.Transform. Adds Translate(...) to move the transform's Position by integer offsets on x, y, z.

🐞 Translate does nothing to the caller because Transform is a struct passed by value, so changing t.Position.x/y/z only mutates the local copy.
using Sandbox;

public static class TransformExtension
{

	public static void Translate(this Transform t, int x = 0, int y = 0, int z = 0)
	{
		t.Position.x += x;
		t.Position.y += y;
		t.Position.z += z;
	}

}