The ID for Lens is 38. If there is no item ID, please use the item name to spawn.
Click the "Copy" button to copy the item ID to your clipboard.
This is the spawn command to give yourself Lens in Terraria. Terraria does not have a vanilla item spawn command and varies between singleplayer and multiplayer. For singleplayer you can use the inventory editor. For mutiplayer you can use a plugin or mod like TShock.
Example spawn commands that will work with TShock:
Copy the command below by clicking the "Copy" button and paste it into your Terraria game or server admin console to obtain.