What would be the best way to transfer a item name, damage, lore, etc.. to another item without doing $item2->setCustomName("Name"); etc...
Yes, but then I would have to do that with enchantments, and the lore. It would just make the code look messy
Are the two items exact copies? You could clone the Item object in that case. You could also get the nbt from one item and set it to the other. I think $item2->setNamedTag($item1->getNamedTag()) would work. That should work for lore, custom name, enchantments, and other nbt tags. Damage would be different.