/gen duplicate [oldGenName] <newGenName>
[] = required
<> = optional
when no newGenName is given, it will just generate a name like this:
ironGenerator will become ironGenerator1
ironGenerator1 would become ironGenerator2
etc
This will duplicate:
Material
custom item true / false
custom item name
radius
literally everything, actually
except for the location. it will duplicate on the player's location. This makes it much easier to create a lot of iron generators, for example.