If you're playing online and planning on having one of these beautiful bugs, heres what you need to do:

Make a small or big room however you want it

Then make sure there's a jugbug near the trap (or just use a grappling hook)

Lure it into the room

Close the door

There, you now have a jugbug :)

More Jug Bug Taming & KO Tips