The'moddata'in'inventoryitem' cannot be synchronized to other clients when the client is modified. Now I can only synchronize data through'additemonserver'by recreating an identical item. But this brings many problems, especially the compatibility with other mods.
It may be possible to synchronize the ID of'inventoryitem'with the command between the client and the server, but I can't find a way to get'inventoryitem' through the ID on the client.
Does anyone know how to solve it? Or new ideas