//id should give a type name (minecraft:x), it can be obtained by `GlobalItemDataHandlers::getSerializer()->serializeType($inhand)->getName()`